Skip to content

Commit

Permalink
* dropdown: refactor toggle config.
Browse files Browse the repository at this point in the history
  • Loading branch information
catouse committed Jul 15, 2024
1 parent 3e1718a commit 96348de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/dropdown/src/vanilla/dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ export class Dropdown<O extends DropdownOptions = DropdownOptions> extends Popov

Dropdown.toggle = {
...Popover.toggle,
getOptions(element, event) {
const options = Popover.toggle!.getOptions!.call(this, element, event);
getOptions(element, options, event) {
options = Popover.toggle!.getOptions!.call(this, element, options, event);
if (!options.target && !options.items && !options.menu) {
options.target = $(element).next('.dropdown-menu');
}
Expand Down

0 comments on commit 96348de

Please sign in to comment.