Share

YUI Library

Tracker: Bugs

5 [#1858480] selectedMenuItem not initialized - ID: 1934829
Last Update: Comment added ( gpuckett )

I construct a YUI menu button from a <select> element where one of its
<option> elements is "selected". However YUI does not initialize the
selectedMenuItem configuration attribute, so when the form is submitted,
the <select> input is missing:
http://cgi.sfu.ca/~jdbates/tmp/yui/200804040/test.html

The test case is a simple <form> with a submit button and two <select>
elements. The <select> elements are identical - the "CCC" <option> is
"selected" - except that the second <select> element is converted to a YUI
menu button.

If the submit button is simply clicked, without touching the YUI menu
button, then only the first <select> input is included in the request - the
second <select> input is missing.

If "CCC" is re-selected from the YUI menu button (or any other option is
selected) and then the submit button is clicked, then both <select> inputs
are included in the request.

I expect that when a YUI menu button is constructed from a <select> element
where one of its <option> elements is "selected", then the selectedMenuItem
configuration attribute should be initialized with that <option>

Thanks and best wishes, Jack


Jack Bates ( jablko ) - 2008-04-04 21:30

5

Closed

Fixed

george puckett

Button

2.5.1

Public


Comments ( 5 )

Date: 2009-01-24 08:06
Sender: gpuckettProject Admin

The YUI project has been migrated from Source Forge to YUILibrary.com.
This ticket has been moved to the tracker on YUILibrary.com that
corresponds to the project it was filed against (YUI2, YUI3, Compressor,
etc.). All tickets not yet closed on Source Forge have been transferred
with their current state intact. The Source Forge instance of all tickets
is being marked as closed to avoid confusion. You can track the
status/progress of this ticket at http://yuilibrary.com/ using the same
ticket ID as it held in Source Forge.


Date: 2008-10-17 02:21
Sender: sf-robotSourceForge.net Site Admin

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).


Date: 2008-10-02 05:35
Sender: gpuckettProject Admin

The fix for this issue had been posted today as part of the YUI 2.6.0
release.

The status of this bug has been set to "pending". The bug will
automatically close in two weeks if there is no additional comments posted
to the bug. Therefore, if you integrate the latest sources into your build
and verify the fix is working, no additional action need be taken.

However, if you update to YUI 2.6.0 and you are still seeing a problem,
please do the following

- add a comment to the bug stating the regression failed and include any
details that may be unique to 2.6.0
- attach any updated sample code necessary for us to reproduce the issue

By updating the bug as stated above, the Status will reset to open and we
will re-investigate the issue.




Date: 2008-07-24 06:57
Sender: gpuckettProject Admin


This issue has been resolved. The fix will be included in the next YUI
update. A comment will be added to this bug to notify you when the release
is posted and the fix is available for your use.



Date: 2008-04-07 20:13
Sender: gpuckettProject Admin


This bug report is being forwarded to the author or current owner of the
affected component for additional investigation and response.


Attached File

No Files Currently Attached

Changes ( 9 )

Field Old Value Date By
assigned_to kloots 2009-01-24 08:06 gpuckett
allow_comments 1 2009-01-24 08:06 gpuckett
close_date 2008-10-02 05:35 2008-10-17 02:21 sf-robot
status_id Pending 2008-10-17 02:21 sf-robot
close_date - 2008-10-02 05:35 gpuckett
status_id Open 2008-10-02 05:35 gpuckett
resolution_id None 2008-07-24 06:57 gpuckett
assigned_to nobody 2008-04-07 20:13 gpuckett
summary selectedMenuItem not initialized 2008-04-07 20:13 gpuckett