Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/components/feedback/Popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,7 @@ export default function Popover({
classes,
)}
ref={popoverRef}
// nb. Use `undefined` rather than `false` because Preact doesn't
// handle boolean values correctly for this attribute (it will set
// `popover="false"` instead of removing the attribute).
popover={asNativePopover ? 'auto' : undefined}
popover={asNativePopover && 'auto'}
data-testid="popover"
data-component="Popover"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export default function PopoverPage() {
<code>boolean</code>
</Library.InfoItem>
<Library.InfoItem label="default">
<code>false</code>
<code>true</code>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not related with this PR, but I forgot to update the default value here, as it was changed in a different PR than the one providing the documentation.

</Library.InfoItem>
</Library.Info>
</Library.Example>
Expand Down