Meteor-Community-Packages / meteor-autocomplete

Client/server autocompletion designed for Meteor's collections and reactivity.
https://atmospherejs.com/mizzao/autocomplete
MIT License
350 stars 109 forks source link

Set input as required field #123

Closed jacobparis closed 8 years ago

jacobparis commented 8 years ago

Is there any way to force the input to set the required=true attribute? I'm doing some fancy CSS for a placeholder but I need to be able to test input:valid to see if there is content inside. Without [required], a blank input will come up as valid and there is no other way in CSS to do this.

mizzao commented 8 years ago

Yeah, just add required=true to the helper.

jacobparis commented 8 years ago

I apologize for leaving this thread open: required=true solved the issue.