Commit eec55479 authored by enured's avatar enured
Browse files

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

B13860 Fix for not clickable typeahead in safari. z-index of the first input field from typeahead pair will be set to 1 if the second one is not set as auto.
parent ccbda057
Pipeline #6936 passed with stage
in 2 minutes and 31 seconds
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment