esaude / mental-health

Apache License 2.0
1 stars 1 forks source link

inputs with no type cause NullPointerException #57

Open kml27 opened 6 years ago

kml27 commented 6 years ago

Check for null or empty string and default to "text" per HTML spec.

jsibley commented 6 years ago

Where do we have inputs with no type? And why not just give them a type?

kml27 commented 6 years ago

We currently do assign a type to all inputs, but this prevents it from possibly being an issue later when more time may have passed and would then take more time to resolve. I ran across this when I was testing the typeahead support ( #16 ) implementation option of changing the FNM/ICD10 selects back to \s with \.