Skip to content

Commit f1e311d

Browse files
committed
refactor: update ListboxOption
1 parent 83fcf46 commit f1e311d

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

packages/@primereact/headless/src/listbox/useListboxOption.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@ export const useListboxOption = withHeadless({
3535
const handleClick = (event: React.MouseEvent) => context?.onOptionSelect(event, option, index);
3636

3737
const handleMouseDown = (event: React.MouseEvent) => {
38-
const el = event.currentTarget as HTMLElement;
39-
40-
if (el.getAttribute('draggable') !== 'true') {
41-
event.preventDefault();
42-
}
43-
4438
context?.changeFocusedOptionIndex(event, index);
4539
};
4640

0 commit comments

Comments
 (0)