We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c7f3c5 commit 1b0f64cCopy full SHA for 1b0f64c
Sources/SwiftHtml/Html/Tags/Input.swift
@@ -52,8 +52,10 @@ public extension Input {
52
}
53
54
/// Specifies a filter for what file types the user can pick from the file input dialog box (only for type="file")
55
- func accept(_ value: String) -> Self {
56
- node.upsert(Attribute(key: "accept", value: value))
+ func accept(_ value: String?) -> Self {
+ if let value = value {
57
+ node.upsert(Attribute(key: "accept", value: value))
58
+ }
59
return self
60
61
0 commit comments