mirror of
https://github.com/penpot/penpot.git
synced 2025-05-11 18:26:36 +02:00
✨ And minor enhancements to the radio-buttons react component
And fix blur handling when on-change is not provided
This commit is contained in:
parent
2170a92dd2
commit
2d5500d96f
1 changed files with 1 additions and 2 deletions
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
(mf/defc radio-button
|
(mf/defc radio-button
|
||||||
{::mf/props :obj}
|
{::mf/props :obj}
|
||||||
[{:keys [icon id value disabled title unique-key icon-class type]}]
|
[{:keys [icon id value disabled title icon-class type]}]
|
||||||
(let [context (mf/use-ctx context)
|
(let [context (mf/use-ctx context)
|
||||||
allow-empty (unchecked-get context "allow-empty")
|
allow-empty (unchecked-get context "allow-empty")
|
||||||
type (if ^boolean type
|
type (if ^boolean type
|
||||||
|
@ -39,7 +39,6 @@
|
||||||
|
|
||||||
[:label {:html-for id
|
[:label {:html-for id
|
||||||
:title title
|
:title title
|
||||||
:key unique-key
|
|
||||||
:class (stl/css-case
|
:class (stl/css-case
|
||||||
:radio-icon true
|
:radio-icon true
|
||||||
:checked checked?
|
:checked checked?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue