Skip to content

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

Merged
korvin89 merged 1 commit into
gravity-ui:mainfrom
VaxobjanovDev:fix/item-selector-dnd-layout
Aug 21, 2026
Merged

fix(ItemSelector): preserve item layout during drag and drop#406
korvin89 merged 1 commit into
gravity-ui:mainfrom
VaxobjanovDev:fix/item-selector-dnd-layout

Conversation

@VaxobjanovDev

Copy link
Copy Markdown
Contributor

Summary of Changes

  • Pass itemClassName={b('list-item')} to both List components in ItemSelector so items retain their container padding (0 16px) when cloned/dragged outside the container.
  • Add min-width: 0 and flex: 1 1 auto to &__item-text and &__value-item-text in ItemSelector.scss to properly support custom renderItemValue layouts (e.g. flex containers) and prevent layout distortion during drag and hover state transitions.

Closes #400

@gravity-ui-bot

Copy link
Copy Markdown
Contributor

Preview is ready.

@korvin89
korvin89 merged commit dfbbf73 into gravity-ui:main Aug 21, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants