I have the code for calling the ColorPicker dialog
at the same time, an error appears in the debugger
and the drawn function in ColorPicker is no longer called. What could be the matter?
PS
I could set the autoPosition:true property, but then the boundaries of the dialog may extend beyond the page in the browser
Code:
let cp = window.isc.ColorPicker.getSharedColorPicker({ defaultPickMode: "complex", autoCenter: false, autoPosition: false, autoCenterOnShow: false, defaultColor: pickerColor.color, defaultOpacity: pickerColor.alpha, colorItem: item, drawn: function () { let height = this.getVisibleHeight(); let width = this.getVisibleWidth(); HTMLUtils.setPosition(this, tile.getPageLeft() + tile.getWidth() - width - 10, Math.floor(tile.getPageTop() + tile.getHeight() / 2), width, height); } }); cp.show();
"Blocked aria-hidden on an element because its descendant retained focus. The focus must not be hidden from assistive technology users. Avoid using aria-hidden on a focused element or its ancestor. Consider using the inert attribute instead, which will also prevent focus. For more details, see the aria-hidden section of the WAI-ARIA specification at"
<div id="isc_EO" eventproxy="isc_ColorPicker_0" role="dialog" class="windowBackground" style="position: absolute; left: 0px; top: 87px; width: 425px; height: 304px; z-index: 800324; background-color: rgb(60, 60, 62); padding: 0px; overflow: visible; cursor: default; visibility: hidden;" onscroll="return isc_ColorPicker_0.$lh()" aria-hidden="true">…</div>
<div id="isc_EO" eventproxy="isc_ColorPicker_0" role="dialog" class="windowBackground" style="position: absolute; left: 0px; top: 87px; width: 425px; height: 304px; z-index: 800324; background-color: rgb(60, 60, 62); padding: 0px; overflow: visible; cursor: default; visibility: hidden;" onscroll="return isc_ColorPicker_0.$lh()" aria-hidden="true">…</div>
PS
I could set the autoPosition:true property, but then the boundaries of the dialog may extend beyond the page in the browser
Comment