Skip to main content

Search and Top Navigation

#9527 closed bug (notabug)

Opened August 29, 2013 09:42AM UTC

Closed August 29, 2013 12:20PM UTC

Last modified August 31, 2013 01:19AM UTC

Update Selected Option when changed in original selectbox

Reported by: otris Owned by:
Priority: minor Milestone: none
Component: [meta] ui.dev Version: git (not yet released)
Keywords: Cc:
Blocked by: Blocking:
Description

I'm trying to use the selectmenu to style a selectbox in my web application. The selectbox in the background is sometimes updated with a new entry which generally works fine. (The new entry is displayed in the dropdown list). However i mark the new entry with "selected" to indicate that this new entry should now be the selected entry, but this does not work.

I reproduced this here:

http://jsfiddle.net/ebagm/

"Test1" stays selected but "newOption" should get selected after it is appended.

Attachments (0)
Change History (2)

Changed August 29, 2013 12:20PM UTC by tj.vantoll comment:1

resolution: → notabug
status: newclosed

Hi otris,

Thanks for taking the time to put this together. We don't use tickets before the widgets land in a released version, but I noted your test case and issue on our tracking wiki so that we can take a look http://wiki.jqueryui.com/w/page/12138056/Selectmenu#comment1377778726.

Changed August 31, 2013 01:19AM UTC by fnagel comment:2

Thanks for the bug report and the test case!

I've pushed a patch and a unit test.