The functionality in the UI works as expected with the modal/dialog element, but however the below error is shown in the console - "Uncaught DOMException: Failed to execute 'showModal' on 'HTMLDialogElement': The element already has an 'open' attribute, and therefore cannot be opened modally"