primeui icon indicating copy to clipboard operation
primeui copied to clipboard

puiautocomplete panel z-index should be relative to source element

Open ritchiecarroll opened this issue 9 years ago • 2 comments

When an autocomplete element is in a pop-up dialog, the autocomplete panel will show below the dialog.

Fix thoughts: code could sum z-index of parent tree (costly), allow a custom z-index option for panel (might be good option to have regardless), or perhaps expose a before/after show event.

Work around with completeSource function:

After response.call() invocation, use this.panel.css("z-index", $("#myDialog").css("z-index") + 1);

ritchiecarroll avatar Apr 01 '16 15:04 ritchiecarroll

Are you using primeelement or primeui autocomplete because both inside the dialog is working fine for me can you post me some example or fiddle please

Mrtcndkn avatar Apr 02 '16 09:04 Mrtcndkn

Here is an example: http://jsfiddle.net/ritchiecarroll/n2732cf0/

Here is another z-index issue without a dialog: http://jsfiddle.net/ritchiecarroll/r0494mkh/

ritchiecarroll avatar Apr 02 '16 17:04 ritchiecarroll