Skip to content
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
Closed

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

qwe2 opened this issue Dec 14, 2015 · 0 comments

Comments

@qwe2
Copy link
Member

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
Projects
None yet
Development

No branches or pull requests

2 participants