Skip to content

Commit

Permalink
Refactor #1832 - For Dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Mar 1, 2021
1 parent 7f2e789 commit 6c5c82c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/dropdown/Dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { DropdownItem } from './DropdownItem';
import { tip } from '../tooltip/Tooltip';
import UniqueComponentId from '../utils/UniqueComponentId';
import ConnectedOverlayScrollHandler from '../utils/ConnectedOverlayScrollHandler';
import { PrimeEventBus } from '../utils/PrimeEventBus';

export class Dropdown extends Component {

Expand Down Expand Up @@ -166,7 +167,10 @@ export class Dropdown extends Component {
}

onPanelClick(event) {
event.stopPropagation();
PrimeEventBus.emit('overlay-click', {
originalEvent: event,
target: this.container
});
}

onInputKeyDown(event) {
Expand Down

0 comments on commit 6c5c82c

Please sign in to comment.