Skip to content

Commit 966118d

Browse files
authored
Fix radio_button disabled state
Signed-off-by: stephann <[email protected]>
1 parent cf00f66 commit 966118d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/ruby_ui/radio_button/radio_button.rb

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ def default_attrs
1515
ruby_ui__form_field_target: "input",
1616
action: "change->ruby-ui--form-field#onInput invalid->ruby-ui--form-field#onInvalid"
1717
},
18-
class: "h-4 w-4 p-0 border-primary rounded-full flex-none"
18+
class: [
19+
"h-4 w-4 p-0 border-primary rounded-full flex-none",
20+
"disabled:cursor-not-allowed disabled:opacity-50"
21+
]
1922
}
2023
end
2124
end

0 commit comments

Comments
 (0)