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
In the original proposal for the popover attribute, we had a defaultopen attribute which would show the popover declaratively on page load.
We considered renaming it to popoverdefaultopen for popovers, but then decided not to and instead add the defaultopen attribute in a way that can also be supported on dialog and details elements, potentially blocking on removing the open attribute from them: #7785 (comment)
It doesn't seem like we fully came to an agreement on a plan for defaultopen in that thread, but I've gotten feedback that this would be a useful feature and that we should still try to add it.
Yeah I guess dialog is tricky since you can already declaratively open it with the open attribute in non-modal mode, but I think that modal dialogs are used a lot more often that non-modal ones so it would make sense to have a declarative way of opening it modally.
Yeah I guess dialog is tricky since you can already declaratively open it with the open attribute in non-modal mode, but I think that modal dialogs are used a lot more often that non-modal ones so it would make sense to have a declarative way of opening it modally.
One idea that came up in openui/open-ui#920 was to make the open attribute an enum for dialog. So you could do open="modal" and it would open modally.
What is the issue with the HTML Standard?
In the original proposal for the popover attribute, we had a
defaultopen
attribute which would show the popover declaratively on page load.We considered renaming it to
popoverdefaultopen
for popovers, but then decided not to and instead add thedefaultopen
attribute in a way that can also be supported on dialog and details elements, potentially blocking on removing theopen
attribute from them: #7785 (comment)It doesn't seem like we fully came to an agreement on a plan for
defaultopen
in that thread, but I've gotten feedback that this would be a useful feature and that we should still try to add it.@mfreed7 @annevk @domenic
The text was updated successfully, but these errors were encountered: