Skip to content

fix(ItemSelector): preserve item layout during drag and drop #400

Description

@DaryaVorontsova

The item layout breaks when dragging items in the ItemSelector. See the attached screenshot.

The item is rendered as follows:

export const renderItemValue = (item) => (
    <Flex gap={1} width="100%">
        <Icon
            style={{flexShrink: 0}}
            data={SCHEMA_TYPE_ICONS[item.iconType]}
        />
        {item.name}
        <Text color="secondary">{item.count}</Text>
    </Flex>
);
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions