diff --git a/src/dropdown.ts b/src/dropdown.ts index 8c6bf897ed..2c73f47a4c 100644 --- a/src/dropdown.ts +++ b/src/dropdown.ts @@ -213,6 +213,7 @@ export class Dropdown extends Component implements Openable { _handleClick = (e: MouseEvent) => { e.preventDefault(); + this._moveDropdown((e.target).closest('li')); if (this.isOpen) { this.close(); } else { @@ -220,7 +221,8 @@ export class Dropdown extends Component implements Openable { } } - _handleMouseEnter = () => { + _handleMouseEnter = (e) => { + this._moveDropdown((e.target).closest('li')); this.open(); }