Skip to content

Commit

Permalink
fix(options): specify click event target
Browse files Browse the repository at this point in the history
  • Loading branch information
Sisha0 committed Mar 30, 2023
1 parent e1e10dc commit be10ce9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/plugins/header/options/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,8 @@ export class UIPOptions extends UIPPlugin {
* Handles {@link UIPOption} `click` event
* to manage {@link UIPRoot} options attributes
*/
@listen('click')
@listen({event: 'click', selector: '.uip-option'})
protected _onOptionClick(e: Event) {
e.stopPropagation();
const option = e.target as UIPOption;
this.root?.toggleAttribute(option.attribute, option.active);
}
Expand Down

0 comments on commit be10ce9

Please sign in to comment.