Commit e1034f6a authored by Carsten  Rose's avatar Carsten Rose
Browse files

Merge branch 'B13860_Typeahead_not_clickable_under_safari' into 'develop'

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

See merge request !415
parents 7c59bd5c eec55479
Pipeline #6971 canceled with stage
......@@ -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