locked
How to close select dropdown programmatically?

    Question

  • I have a lockscreen in my app (to prevent accidental touches in a LOB app) that puts a fullscreen overlay over the app and eats clicks&touches. However, an open select dropdown stays open, even when I call focus() on my lockscreens div. I would have thought that that loses the focus on the dropdown and closes it.
    Is there any way to do that?
    Saturday, August 9, 2014 9:43 PM

Answers

  • Well, that's how you do it:

    WinJS.Utilities.query("select").forEach(function(select) {
      select.blur();
    });
    • Marked as answer by pkursawe Saturday, August 9, 2014 9:56 PM
    Saturday, August 9, 2014 9:56 PM