Skip to content

Commit

Permalink
Optional textarea placeholder value
Browse files Browse the repository at this point in the history
  • Loading branch information
tib committed Jan 2, 2022
1 parent 9fd087d commit bab316e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SwiftHtml/Tags/Textarea.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public extension Textarea {
}

/// Specifies a short hint that describes the expected value of a text area
func placeholder(_ value: String) -> Self {
func placeholder(_ value: String?) -> Self {
attribute("placeholder", value)
}

Expand Down

0 comments on commit bab316e

Please sign in to comment.