x-ui-design 0.8.46 → 0.8.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -5432,7 +5432,9 @@ const Dropdown = ({
5432
5432
  return () => document.removeEventListener('mousedown', handleClick);
5433
5433
  }, [open]);
5434
5434
  const triggers = Array.isArray(trigger) ? trigger : [trigger];
5435
- const onTriggerClick = () => {
5435
+ const onTriggerClick = e => {
5436
+ e.preventDefault();
5437
+ e.stopPropagation();
5436
5438
  if (triggers.includes('click')) {
5437
5439
  setOpenInternal(!open);
5438
5440
  }