Skip to content

Commit

Permalink
1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
elite174 committed Apr 17, 2024
1 parent ec62788 commit 535d664
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 1.6.0
- Added `disabled` prop which disables triggering popover. Popover now also looks at `disabled` state of triggering html element.

# 1.5.0

- Added new prop: `closeOnEscape`. If `true` (by default) the popover will be closed if `Escape` key pressed.
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ export type PopoverProps = {
content: JSXElement;
open?: boolean;
defaultOpen?: boolean;
/**
* Disables listening to trigger events
* Note: if your trigger element has `disabled` state (like button or input), popover also won't be triggered
*/
disabled?: boolean;
/** Should content have the same width as trigger */
sameWidth?: boolean;
/** Options for floating-ui computePosition function */
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "solid-simple-popover",
"version": "1.5.0",
"version": "1.6.0",
"description": "A simple popover component for SolidJS",
"author": "Vladislav Lipatov",
"type": "module",
Expand Down

0 comments on commit 535d664

Please sign in to comment.