jquery - How can I disable hash url entry in jQm while still allowing my blur event to fire? -


using jqm, when have $.mobile.hashlisteningenabled = false;:

$(document).on("mobileinit", function (){     // disable hash navigation     $.mobile.hashlisteningenabled = false; }); 

my blur event not firing:

$('.ui-selectmenu-list').on('blur', function(){     console.log('blur'); } 

when remove $.mobile.hashlisteningenabled = false;, blur event fires consistently no issue.

how can disable hash url entry navigation while still allowing blur event fire?

update: other blur events on inputs work either way, have feeling issue related jquery mobile enhanced selectmenus. without $.mobile.hashlisteningenabled = false;, can see &ui-state=dialog being applied , removed url in address bar. it, nothing added url, selectmenu still opened no issue. have feeling might jqm using determine blur states.

it turns out blur event fire when click off selectmenu list (closing it), not when make selection caused close. solved listening blur on anchor element controlling selectmenu, fired when expected.


Comments