How do I comment inside a modal without closing it?

Open the modal, activate pinthread, and select the element inside it. The widget keeps itself within the modal’s input boundary. Its pointer and keyboard events do not reach the page’s outside-click handlers, including when the modal content is portalled.

Example

<dialog open aria-label="Account settings">
  <button type="button">Change email</button>
</dialog>

More details

See install pinthread and the guide to modal and popover support.

Question

Can I annotate portalled content?

Yes. Pinthread supports open modal and popover content, including content portalled outside the page root.

Start a review

Create a free project to collect website feedback.