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

HtmlControlFor<DropDown> implementation #243

Open
imilchev opened this issue Mar 17, 2016 · 1 comment
Open

HtmlControlFor<DropDown> implementation #243

imilchev opened this issue Mar 17, 2016 · 1 comment

Comments

@imilchev
Copy link

I have a question about the implementation of the HtmlControlFor and more specifically the methods SelectElementByText and SelectElement. Why the first one does use .change() of jQuery and the second one doesn't. Basically this forces me to create my custom function to select an option from a dropdown as we use Knockout and if we just change the value without calling .change() then the observable is not updated.

Is this done for some legit reason or is it a bug?

@robdmoore
Copy link
Member

No specific reason.

Feel free to send a PR to add the call.

On 17 Mar 2016, at 8:43 pm, crazybg321 [email protected] wrote:

I have a question about the implementation of the HtmlControlFor and more specifically the methods SelectElementByText and SelectElement. Why the first one does use .change() of jQuery and the second one doesn't. Basically this forces me to create my custom function to select an option from a dropdown as we use Knockout and if we just change the value without calling .change() then the observable is not updated.

Is this done for some legit reason or is it a bug?


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants