ant-design-draggable-modal | The Modal from Ant Design | Frontend Framework library
kandi X-RAY | ant-design-draggable-modal Summary
kandi X-RAY | ant-design-draggable-modal Summary
Modal from Ant Design, draggable.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ant-design-draggable-modal
ant-design-draggable-modal Key Features
ant-design-draggable-modal Examples and Code Snippets
Community Discussions
Trending Discussions on ant-design-draggable-modal
QUESTION
I have a dnd selection tab with search functionality to filter the items available. Once an item is selected from draggable section it should be removed from that section and dropped to the droppable section and vice versa. The link to my code is https://codesandbox.io/s/dnd-search-select-sort-xfdtn When an item say "Apple" is selected it is going to the droppable section but when I search for "Apple" again in the draggable section search bar it reappears again and I can again move that to the droppable section which should not be the case. Once it is selected it should not appear again on the list. Below is the corresponding code.
...ANSWER
Answered 2020-May-21 at 02:55In your state you create Fuse
instance once with full list of items
. In your handleItemSearch
you always search against full list of items
. Hence the issue.
To solve the issue, create fresh instance of Fuse
in your handleItemSearch
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ant-design-draggable-modal
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page