Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(283)

Unified Diff: lib/components/dropdown.dart

Issue 14295009: Fix widget.dart to work with the latest web_ui library. Specifically, query selectors need to use "… (Closed) Base URL: https://github.com/kevmoo/widget.dart.git@master
Patch Set: ptal Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/components/collapse.html ('k') | lib/components/dropdown.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « lib/components/collapse.html ('k') | lib/components/dropdown.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698