Fix more issues with gr-dropdown

In troubleshooting this element for shadow DOM, some more issues arose.

Change-Id: I3843d6364835e7fd170dc824ce68fa722a701759
This commit is contained in:
Kasper Nilsson
2017-06-19 14:01:45 -07:00
parent 87bfdf8e0a
commit 37eb0b5f90
2 changed files with 3 additions and 2 deletions

View File

@@ -167,7 +167,7 @@ limitations under the License.
cursor-target-class="selected"
scroll-behavior="never"
focus-on-move
stops="[[_listElements]]"</gr-cursor-manager>
stops="[[_listElements]]"></gr-cursor-manager>
<gr-rest-api-interface id="restAPI"></gr-rest-api-interface>
</template>
<script src="gr-dropdown.js"></script>

View File

@@ -196,7 +196,8 @@
_resetCursorStops() {
Polymer.dom.flush();
this._els = this.querySelectorAll('li');
// TODO(kaspern): This is broken in shadow DOM.
this._listElements = this.querySelectorAll('li');
},
});
})();