mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
fix(theme): clear button disabled inputs (#5607)
* fix(input): disable pointer events on clear button when inactive * chore(changeset): add changeset
This commit is contained in:
parent
8e51a855b1
commit
928383bcfc
5
.changeset/itchy-masks-hear.md
Normal file
5
.changeset/itchy-masks-hear.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@heroui/theme": patch
|
||||
---
|
||||
|
||||
use peer-data-[filled=true]:pointer-events-none to disable clear button interaction when input is disabled and has content
|
||||
@ -890,6 +890,14 @@ const input = tv({
|
||||
],
|
||||
},
|
||||
},
|
||||
// isClearable & isDisabled
|
||||
{
|
||||
isClearable: true,
|
||||
isDisabled: true,
|
||||
class: {
|
||||
clearButton: "peer-data-[filled=true]:pointer-events-none",
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
|
||||
@ -849,6 +849,14 @@ const numberInput = tv({
|
||||
label: ["pe-2", "max-w-full", "text-ellipsis", "overflow-hidden"],
|
||||
},
|
||||
},
|
||||
// isClearable & isDisabled
|
||||
{
|
||||
isClearable: true,
|
||||
isDisabled: true,
|
||||
class: {
|
||||
clearButton: "peer-data-[filled=true]:pointer-events-none",
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user