Fork me on GitHub
#reagent
<
2018-05-11
>
cryan22:05:59

has anyone used datalists? I have this

[:input.form-control {:type "text", :placeholder "Zip Code", :list "locations"}]
       [:datalist.locations
        [:option {:value "Bryn Mawr"}]
        [:option {:value "Rosemont"}]
        [:option {:value "Wayne"}]]
and the autosuggest doesn't pop up

justinlee22:05:05

@cryan the :datalist.locations is setting the datalist’s class, not its id. i think you need :datalist {:id "locations"} so that it lines up with the :list attribute

cryan22:05:19

ah you're right, thanks