You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Components set as headers for a ConfirmDialog are not interactable #5277
Reproduced also with the web component using the following code:
<vaadin-buttonid="open">Open</vaadin-button><vaadin-confirm-dialog><buttonslot="header">Close</button>
Do you want to save or discard the changes?
</vaadin-confirm-dialog><scripttype="module">import'@vaadin/confirm-dialog';constdialog=document.querySelector('vaadin-confirm-dialog');constbutton=document.querySelector('#open');dialog._headerNode.addEventListener('click',()=>{dialog.opened=false;});button.addEventListener('click',(event)=>{dialog.opened=true;});</script>
Activity
web-padawan commentedon Aug 15, 2023
Reproduced also with the web component using the following code:
web-padawan commentedon Aug 15, 2023
So, this issue is caused by the following CSS:
https://github.com/vaadin/web-components/blob/7072364960f0f5be719b41ae6bbd8f3750bd8fe8/packages/dialog/src/vaadin-dialog-styles.js#L16
There is a workaround for footer, but not header:
https://github.com/vaadin/web-components/blob/7072364960f0f5be719b41ae6bbd8f3750bd8fe8/packages/confirm-dialog/src/vaadin-confirm-dialog-overlay.js#L27-L30