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

Dropdown onChnage does not fire after init #3843

Closed
gewaking opened this issue Mar 17, 2016 · 2 comments
Closed

Dropdown onChnage does not fire after init #3843

gewaking opened this issue Mar 17, 2016 · 2 comments

Comments

@gewaking
Copy link

$("#MyList").dropdown({
onChange: function(value, text) {
console.log("a");
}
});

<div id="MyList" class="ui dropdown item"> Export <i class="dropdown icon"></i>
  <div class="menu">
    <div data-value="1" class="item">Item 1</div>
    <div data-value="2" class="item">Item 2</div>
  </div>
  <input type="hidden" name="item">
</div>
@JakeAlmer
Copy link

looks like a duplicate of #3744

@jlukic
Copy link
Member

jlukic commented Apr 4, 2016

forOnInit is a setting for dropdown.
https://github.com/Semantic-Org/Semantic-UI/blob/master/src/definitions/modules/dropdown.js#L3252

Pass it in as at init as true

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

3 participants