Skip to content
This repository has been archived by the owner on Jan 30, 2025. It is now read-only.

Commit

Permalink
Input: Disable fallback checkbox if FormField is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Ceolin committed Jun 28, 2024
1 parent cc0510e commit f0a028f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/components/input.ex
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ defmodule ZoonkWeb.Components.Input do
~H"""
<div hidden={@type == "hidden"}>
<label class="flex items-start gap-2 text-sm text-gray-700 disabled:opacity-10" for={@id}>
<input type="hidden" name={@name} value="false" />
<input type="hidden" name={@name} value="false" disabled={@rest[:disabled]} />
<input
type="checkbox"
id={@id}
Expand Down

0 comments on commit f0a028f

Please sign in to comment.