Skip to content

Commit 63330b9

Browse files
authored
Update Textarea.swift (#16)
Fixed textarea bug: attribute value for disabled should be "disabled" and not "autofocus"
1 parent b2620a6 commit 63330b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftHtml/Tags/Textarea.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public extension Textarea {
4848

4949
/// Specifies that a text area should be disabled
5050
func disabled(_ condition: Bool = true) -> Self {
51-
flagAttribute("autofocus", nil, condition)
51+
flagAttribute("disabled", nil, condition)
5252
}
5353

5454
/// Specifies which form the text area belongs to

0 commit comments

Comments
 (0)