Skip to content

Selectmenu: call refresh(): this.menuItems was undefined #1370

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

Closed
wants to merge 5 commits into from

Conversation

jannnci
Copy link

@jannnci jannnci commented Oct 22, 2014

Calling refresh() on selectmenu without an option throw error: "this.menuItems is undefined"
Now i create this.menuItems also for selectmenu without option and in open function i check if this.menuItems realy has an item.

Fixes #10662

Calling refresh() on selectmenu without an option throw error: "this.menuItems is undefined"
Now i create this.menuItems also for selectmenu without option and in open function i check if this.menuItems realy has an item.

Fixes #10662
== vs ===
@tjvantoll
Copy link
Member

Hi @jannnci,

Thanks for taking the time to contribute to jQuery UI. We have the following requirements of pull requests before we can review them.

  • Sign our CLA.
  • Include a unit test to ensure the fix works and prevent against regressions.
  • Update your git config to use your real name and email address (the same ones you use to sign the CLA).

@jannnci
Copy link
Author

jannnci commented Oct 28, 2014

done

@@ -82,6 +82,10 @@
</optgroup>
</select>

<label for="emptySelect">Select without an option:</label>
<select name="emptySelect" id="emptySelect">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a tab here.

@tjvantoll
Copy link
Member

I verified this works and the test suite passes. The tests needs to be simplified and this should be good.

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

Successfully merging this pull request may close these issues.

2 participants