clauderic / clauderic/react-sortable-hoc
onClick not working
- Dominant language
- JavaScript
- Stars
- 10.9k
- Forks
- 959
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
if I click on my Icon at sortableItem Component then nothings triggers. if I add the same comonent to sortableList it works. Why can I not onClick on sortableItem ? It is the item "IosCloseCircle".
```
const SortableItem = SortableElement(({ value, onDelete }: TDragAndDropSortableItem) => (
/// HERE NOT WORKING NO TRIGGER/no console log
console.log('saas')} size={24} className="delete-button-dad" />
));
const SortableList = SortableContainer>(({ items, onDelete }: TDragAndDropSortableList) => {
return (
{items.map((value: any, index: number) => (
console.log(e)} />
))}
);
});
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the SortableItem and SortableList snippets in the issue and reproduce the click behavior around IoCloseCircle. Compare the rendered interaction in each component; done when the cause is identified and the click handler reliably triggers from SortableItem.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100