?
avatar tranduyhung
tranduyhung
16 Apr 2014

In Joomla 3 if we use JHtml::_('formbehavior.chosen', 'select') and make a dropdown list required and not select an option when submit the form, we get error message "Please select an item in the list" on top left of the screen instead of getting it right below the dropdown list.

The reason is Chosen library makes focus on the hidden element instead of the Chosen's . In the below screenshot I used Firebug to show element, as you can see it had a red error border that was added by form validation.

01

avatar tranduyhung tranduyhung - open - 16 Apr 2014
avatar zero-24
zero-24 - comment - 16 Apr 2014

Hi @tranduyhung,
i can confirm this behavior.

You may blame the J!Tracker Application for transmitting this comment.

avatar Achal-Aggarwal
Achal-Aggarwal - comment - 16 Apr 2014

Hi @tranduyhung
If you could find some time to test a patch to solve this issue, please checkout http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33596&start=0
and apply patch posted there.

avatar tranduyhung
tranduyhung - comment - 17 Apr 2014

Hi @Achal-Aggarwal
Thank you! I can not find your pull request in Joomla! Patch Tester component. I will try again later or apply the patches manually, then I will post the result.

avatar brianteeman brianteeman - change - 28 Jul 2014
The description was changed
avatar brianteeman brianteeman - change - 2 Sep 2014
Category JavaScript
avatar brianteeman brianteeman - change - 11 Sep 2014
Status New Confirmed
avatar nicksavov
nicksavov - comment - 15 Oct 2014

Hi Achal,

Could you submit the pull request on github? Thanks in advance!

avatar zero-24
zero-24 - comment - 2 Jan 2015

@tranduyhung

I just see this but can't see/find this with our current code base. Can you have a look that this is still a issue in staging?

DL: https://github.com/joomla/joomla-cms/archive/staging.zip

Thanks.

avatar brianteeman brianteeman - change - 3 Jan 2015
Labels Added: ?
avatar roland-d
roland-d - comment - 5 May 2015

@tranduyhung Thank you for your contribution however I no longer believe this is an issue in the current stable release of Joomla. As @zero-24 said, he can't reproduce it either so I will close this issue. If you feel the issue still exists feel free to re-open.

avatar roland-d roland-d - change - 5 May 2015
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2015-05-05 13:38:48
Closed_By roland-d
avatar roland-d roland-d - close - 5 May 2015

Add a Comment

Login with GitHub to post a comment