Skip to content
This repository has been archived by the owner on Jul 13, 2020. It is now read-only.

zIndex is deprecated in 1.12 #29

Open
bravedave opened this issue Aug 12, 2016 · 0 comments
Open

zIndex is deprecated in 1.12 #29

bravedave opened this issue Aug 12, 2016 · 0 comments

Comments

@bravedave
Copy link

https://jqueryui.com/upgrade-guide/1.12/#removed-zindex

Your Line doesn't error, but doesn't have the desired effect
// zIndex will force the element on top of anything (like a dialog it's in)
menu.element.zIndex && menu.element.zIndex($(this).zIndex() + 1);

To see this issue, use inputosaurus in a jquery-ui dialog, the results are hidden behind the dialog

To work around this, I have added a line to allow appendTo to be passed through to the jqueryui autocomplete function (see below) - but I think you may have a better solution

` _instAutocomplete : function() {
if(this.options.autoCompleteSource){
var widget = this;

        this.elements.input.autocomplete({
            position : {
                of : this.elements.ul
            },
            source : this.options.autoCompleteSource,
            minLength : 1,
>> added << appendTo: this.options.autoCompleteAppendTo || 'body',
            select : function(ev, ui){`
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant