Closed
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
true
for a non-boolean attributepopover
. -
popover
attribute wasn't added todiv
It works if I change boolean atribute popover
to popover="yes"
.
Also ESLint fails on unknown popover
, popovertarget
, popovertargetaction
attributes.