We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dccd891 commit 85813b7Copy full SHA for 85813b7
Sources/SwiftHtml/Html/Tags/Textarea.swift
@@ -20,8 +20,8 @@
20
/// **Tip:** Always add the `<label>` tag for best accessibility practices!
21
public final class Textarea: Tag {
22
23
- public init(_ contents: String) {
24
- super.init(Node(type: .standard, name: "textarea", contents: contents))
+ public init(_ contents: String? = nil) {
+ super.init(Node(type: .standard, name: "textarea", contents: contents ?? ""))
25
}
26
27
0 commit comments