Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(TreeSelect): fixed dnd examples with selected values #1329

Merged

Conversation

IsaevAlexandr
Copy link
Contributor

  • fixed items selection while dnd transitions;
  • added new parsed list state property to find flatten index by id;
  • slightly changed api in TreeSelect(unstable) onItemClick prop to have analogical api with other render methods

@gravity-ui-bot
Copy link
Contributor

Preview is ready.

] === id,
disabled: listState.disabledById[id],
},
defaultHandleClick,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed signature in more common way - first argument data, then context, last is defaultHandlerCb

props: renderState.props,
itemState: renderState.context,
index,
renderContext: renderContextProps,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed argument to object style

@IsaevAlexandr IsaevAlexandr merged commit 14d6ceb into gravity-ui:main Feb 12, 2024
3 of 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.

3 participants