Doc.Select always has the first item selected by default #65

Closed
qwe2 opened this Issue Dec 14, 2015 · 0 comments

Comments

Projects
None yet
2 participants
@qwe2
Contributor

qwe2 commented Dec 14, 2015

let v = Var.Create "foo"
let doc = Doc.Select [attr.``class`` "form-control"] id ["bar"; "foo"] v
doc.RunById("main")

will have bar selected when rendered. This is probably due to setting selectedIndex before the select item would have the appropriate item rendered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment