8000 Make the autocomplete modifier accept an enum by mattesmohr · Pull Request #165 · vapor-community/HTMLKit · GitHub
[go: up one dir, main page]

Skip to content

Make the autocomplete modifier accept an enum - #165

Merged
mattesmohr merged 4 commits into
mainfrom
fix-autocomplete-attribute
Dec 31, 2024
Merged

mattesmohr merged 4 commits into
mainfrom
fix-autocomplete-attribute

Conversation

@mattesmohr
Copy link
Copy Markdown
Member

The autocomplete attribute is actually an enumerated attribute. However, the unique aspect here is that the attribute also allows a list of values. Therefore the modifier should accept either an enum or a set of options.

Input()
   .autocomplete(.off)

Input()
   .autocomplete([.name, .givenName])

@mattesmohr
mattesmohr marked this pull request as ready for review December 30, 2024 21:24
@mattesmohr
mattesmohr merged commit dc2b315 into main Dec 31, 2024
@mattesmohr
mattesmohr deleted the fix-autocomplete-attribute branch December 31, 2024 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0