Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(popover): unexpected props on a DOM element (#2522)
* fix(popover): handle isDisabled logic for elements without isDisabled props * chore(popover): isDisabled not necessary in restProps * chore(changset): handle isDisabled logic for elements without isDisabled props * fix(popover): keep all the props but isDisabled for non nextui button * refactor(popover): move isDisabled handling to getTriggerProps * refactor(popover): get the popover trigger styles from theme instead * feat(theme): add isDisabled styles in popover * chore(changeset): add patch to @nextui-org/theme * refactor(popover): avoid re-instantiate popover styles * fix(popover): apply filterDOMProps in popover trigger * fix(popover): avoid conflicts with tooltip isDisabled * chore(core): add isNextUIEl function to check if a component is a NextUI component * chore(changeset): add system-rsc and revise message * feat(dropdown): add tests for custom trigger with isDisabled * fix(dropdown): incorrect User import path * feat(dropdown): revise User and add mockRestore * fix(dropdown): revise user import path --------- Co-authored-by: Junior Garcia <jrgarciadev@gmail.com>
- Loading branch information
1 parent
410e30c
commit c5049ed
Showing
6 changed files
with
92 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"@nextui-org/popover": patch | ||
"@nextui-org/system-rsc": patch | ||
"@nextui-org/theme": patch | ||
--- | ||
|
||
Fixed unexpected props on a DOM element (#2474) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters