New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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