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
<divpopoverid="my-popover">
Greetings, one and all!
</div><buttonpopovertarget="my-popover"popovertargetaction="show">OpenPopover</button><inputtype="button"popovertarget="my-popover"popovertargetaction="hide"value="Close Popover"/>
Login to Svelte REPL is broken if I enable this extension . The authenticating happens in a popup but you can also use it via https://svelte.dev/auth/login . Dev console logs some warnings related to popover API. Is svelte REPL using this API and react dev tools breaking this somehow ?
A reliable polyfill is available for the Popover API, and some companies (eg. Github) are already using it in production. I tried using it in my app and spent 10 minutes trying to understand what I was doing wrong, before realizing that React itself didn't support it. I think this sort of confusion will only get more common as this API gets more attention.
Just wanted to share this experience since I know it can be hard to gauge the importance of different issues. Appreciate the work y'all do! ❤️
Tried to use popover today. Doesn't work. Have to explicitly set a value despite the spec defining "auto" as default.
Honest question: What is the React team's plan to permanently fix this so developers can trust React will always comply with web standards?
Popover is another example among many throughout the years where React's non-compliance creates friction or outright fails to work with web standards. React has effectively recreated the situation we had with IE where one player with the biggest marketshare slows the whole community down. This is intolerable and not sustainable.
Reacted by Jimmy, Nigel Decontie, Chris Wrench, Kris Savoia, Daniel Bayley and Daniel Bayley
@bermann you can use the popover, popovertarget, and popovertargetaction attributes in React 18, though you will need to provide the default auto value to get it to work properly. however, if you want to add a beforetoggle or toggle event listener, you will need to use a ref to add and cleanup the listener manually.
It is a shame that this only works if you explicitly use popover="auto" or popover="manual". auto is the default value. In HTML popover attribute works alone without needing to explicitly set it to auto.
Activity
Dreadfullove commentedon Oct 8, 2023
Sure
Semigradsky commentedon Oct 18, 2023
Related DT discussions:
konstantinblaesi commentedon Oct 26, 2023
Login to Svelte REPL is broken if I enable this extension . The authenticating happens in a popup but you can also use it via https://svelte.dev/auth/login . Dev console logs some warnings related to popover API. Is svelte REPL using this API and react dev tools breaking this somehow ?
joshwcomeau commentedon Apr 10, 2024
Hey folks! Any news on this?
A reliable polyfill is available for the Popover API, and some companies (eg. Github) are already using it in production. I tried using it in my app and spent 10 minutes trying to understand what I was doing wrong, before realizing that React itself didn't support it. I think this sort of confusion will only get more common as this API gets more attention.
Just wanted to share this experience since I know it can be hard to gauge the importance of different issues. Appreciate the work y'all do! ❤️
eps1lon commentedon Apr 11, 2024
Just need to bring this up internally so that we're aligned on prop naming. If anybody wants to test it out, you can install
to test #27981
jfbrennan commentedon May 17, 2024
Tried to use
popovertoday. Doesn't work. Have to explicitly set a value despite the spec defining "auto" as default.Honest question: What is the React team's plan to permanently fix this so developers can trust React will always comply with web standards?
Popover is another example among many throughout the years where React's non-compliance creates friction or outright fails to work with web standards. React has effectively recreated the situation we had with IE where one player with the biggest marketshare slows the whole community down. This is intolerable and not sustainable.
jfbrennan commentedon May 17, 2024
Popover's
toggleandbeforetoggleevents do not appear to work either:acusti commentedon May 25, 2024
@jfbrennan if you use the latest react RC, all popover API attributes and event handlers are available and working. i'm using
dominictobias-bullish commentedon Jun 27, 2024
Why isn't this added to 18 too? Popover is available in all modern browsers and part of the standard
peteruithoven commentedon Jul 27, 2024
Is there any change the Popover API can be backported to v18?
teamteak commentedon Oct 23, 2024
Considering React 19 is delayed, can we not get this in React 18?
bermann commentedon Nov 28, 2024
Any news on this? Would be really helpful to use popover. Does anyone knows about a walkaround?
acusti commentedon Nov 28, 2024
@bermann you can use the
popover,popovertarget, andpopovertargetactionattributes in React 18, though you will need to provide the defaultautovalue to get it to work properly. however, if you want to add abeforetoggleortoggleevent listener, you will need to use a ref to add and cleanup the listener manually.k-sav commentedon Jan 15, 2025
bonkers
o-t-w commentedon Jan 17, 2025
It is a shame that this only works if you explicitly use
popover="auto"orpopover="manual".autois the default value. In HTMLpopoverattribute works alone without needing to explicitly set it toauto.tounsoo commentedon Feb 18, 2025
Will React18 also support popover api?