Index: lib/components/dropdown.dart |
diff --git a/lib/components/dropdown.dart b/lib/components/dropdown.dart |
index ccdf2f8a8e4c34b3b1356ddadcc11dfe1acd74a2..1db265615dc539ec3efee0eae6e5ebb93bb4352a 100644 |
--- a/lib/components/dropdown.dart |
+++ b/lib/components/dropdown.dart |
@@ -47,7 +47,7 @@ class Dropdown extends WebComponent implements ShowHideComponent { |
final action = _isShown ? ShowHideAction.SHOW : ShowHideAction.HIDE; |
- final headerElement = this.query('x-dropdown > .dropdown'); |
+ final headerElement = this.query('[is=x-dropdown] > .dropdown'); |
if(headerElement != null) { |
if(_isShown) { |
@@ -57,7 +57,7 @@ class Dropdown extends WebComponent implements ShowHideComponent { |
} |
} |
- final contentDiv = this.query('x-dropdown > .dropdown-menu'); |
+ final contentDiv = this.query('[is=x-dropdown] > .dropdown-menu'); |
if(contentDiv != null) { |
ShowHide.begin(action, contentDiv, effect: _effect); |
} |
@@ -80,7 +80,7 @@ class Dropdown extends WebComponent implements ShowHideComponent { |
} |
static void closeDropdowns() { |
- document.queryAll('x-dropdown') |
+ document.queryAll('[is=x-dropdown]') |
.where((e) => e.xtag is Dropdown) |
.map((e) => e.xtag as Dropdown) |
.forEach((dd) => dd.hide()); |