Prevent popup close on scrolling.

2 posts, 1 answers
  1. Taras
    Taras avatar
    11 posts
    Member since:
    May 2015

    Posted 31 Jul 2015 Link to this post

    Need to prevent closing dropdown popup, when user scrolls the page. 

    Movie to explain the issue.

     In fact, dropdown should be closed only by user click on opened autocomplete again.

    Result should be like the dropdowns on this page.

    Thanks in advance.

  2. Answer
    Konstantin Dikov
    Konstantin Dikov avatar
    1756 posts

    Posted 04 Aug 2015 Link to this post

    Hi Taras,

    Closing the drop down when you click on another element on the page is the expected behavior. Nevertheless, if you need to prevent this you can handle the "close" event of the widget and determine whether or not to prevent the closing. Since you want to close the drop down when you select an item, you can use a global boolean variable and change its value within the "change" event as demonstrated in the following dojo example:

    Konstantin Dikov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top