Skip to content
Snippets Groups Projects

B13860 Fix for not clickable typeahead in safari. z-index of the first input...

Merged Enis Nuredini requested to merge B13860_Typeahead_not_clickable_under_safari into develop
1 file
+ 13
1
Compare changes
  • Side-by-side
  • Inline
@@ -393,4 +393,16 @@ var QfqNS = QfqNS || {};
}
$element.typeahead('val', results[0].value);
};
})(QfqNS);
\ No newline at end of file
})(QfqNS);
// fix for safari to make the right input field clickable. Safari doesn't get the right sequence of z-index from the two typeahead input fields which are overlaid.
// z-index can not be set in qfq because the input field is generated by typeahead.bundle.min.js, changes are needed to do at the end of DOM after everything is loaded.
$(window).on("load",function() {
$(document).ready(function(){
$(".tt-input").each(function(){
if($(this).css("z-index") !== "auto"){
$(this).prev().css("z-index",1);
}
});
});
});
\ No newline at end of file
Loading