kobotoolbox / enketo-express

We've moved! Please use the new repository 🠊 https://github.com/enketo/enketo-express
Apache License 2.0
102 stars 90 forks source link

Add range widget #1034

Closed MartijnR closed 6 years ago

MartijnR commented 6 years ago
MartijnR commented 6 years ago

Native is challenging but somebody has done most of the work here:

MartijnR commented 6 years ago

Looks like native range inputs are out because there is no empty value. The default value is somewhere in the middle (if min < max). So if the value is empty in the model (new record, or existing record) a native range input can never show the empty value. We can however use a type="number" input as our original input and use type=range with reset ability in the widget

MartijnR commented 6 years ago

chrome background issue: https://medium.com/@ryanjw/buggy-edges-in-chrome-when-using-background-size-cover-dd6eb44541fc