ui: fix nav-dropdown (#326)

This commit is contained in:
panda authored and GitHub committed 2022-03-24 00:43:02 +08:00
1 parent f9918128a9
commit adce12e212
3 files changed
+5 -4

No files matched your search

@@ -26,7 +26,7 @@ export default class Dropdown extends DOMAttachedObject {
};
this.dropInstance = new Drop({
target: $dom[0],
classes: 'dropdown',
classes: `dropdown ${$dom.attr('data-dropdown-custom-class') || ''}`,
content: this.options.target || $.find($dom.attr('data-dropdown-target'))[0],
position: this.options.position,
openOn: 'hover',