-
Notifications
You must be signed in to change notification settings - Fork 49.8k
Closed
Labels
Description
About this API: https://developer.mozilla.org/en-US/docs/Web/API/Popover_API
React version: any
Steps To Reproduce
<div popover id="my-popover">
Greetings, one and all!
</div>
<button popovertarget="my-popover" popovertargetaction="show">
Open Popover
</button>
<input
type="button"
popovertarget="my-popover"
popovertargetaction="hide"
value="Close Popover"
/>Link to code example: https://codesandbox.io/s/popover-api-8x5nfq?file=/src/App.js
The current behavior
-
Error in console:
Warning: Received
truefor a non-boolean attributepopover. -
popoverattribute wasn't added todiv
It works if I change boolean atribute popover to popover="yes".
Also ESLint fails on unknown popover, popovertarget, popovertargetaction attributes.
jozef-mikusinec-kiwicom, zgreen, lashad, camchenry, joshwcomeau and 11 moreAndreasHerz