When clicking on the scrollbar, the dropdown disappears #66

Open
xairrick opened this Issue Jun 28, 2015 · 1 comment

Projects

None yet

1 participant

@xairrick

I've seen this in both IE & Chrome. with the scrollbar: true option the scrollbar appears, but when you click the mouse on the scrollbar, the dropdown disappears -> http://jsfiddle.net/6v6bex3f/

@xairrick
xairrick commented Jul 2, 2015

I fixed this by changing the blur event

.bind("blur.timepicker", function (e) {
                setTimeout(function () {
                    if (document.activeElement.className !== "ui-timepicker ui-widget ui-widget-content ui-menu ui-corner-all") {
                        // Don't close if the dropdown got focus
                        t.close();
                    }
                }, 1);
            })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment