Opened 7 years ago

Closed 3 years ago

#15562 closed defect (patchwelcome)

MissingMessage of CheckedMultiSelect does not disappear

Reported by: phil0135 Owned by: dante
Priority: undecided Milestone: 1.13
Component: DojoX Widgets Version: 1.7.2
Keywords: Cc:
Blocked By: Blocking:


If CheckedMultiSelect? is required and the missingMessage is displayed it does only disappear, when an option is selected, but not when another widget gets the focus. Within a form it seems to be no problem, but it gets annoying when using tabs and the message is shown even if another tab is selected.

Adding the code from dijit.form.ValidationTextBox? solves the problem when CheckedMultiSelect? has been focused manually.

	_onBlur: function(){

Furthermore the definition of focusNode does not prevent this behavior, if CheckedMultiSelect? is the first "validation widget" and has been focused during the validation process of dijit.form.Form. It displays the missingMessage, but it does not disappear if another element gets the focus.

Move the focusNode attach point to the top element of the template and it works.

<div class="dijit dijitReset dijitInline dijitLeft" id="widget_${id}" data-dojo-attach-point="focusNode"
	><div data-dojo-attach-point="comboButtonNode"
	><div data-dojo-attach-point="selectNode" class="dijit dijitReset dijitInline ${baseClass}Wrapper" data-dojo-attach-event="onmousedown:_onMouseDown,onclick:focus"
		><select class="${baseClass}Select dojoxCheckedMultiSelectHidden" multiple="true" data-dojo-attach-point="containerNode"></select
		><div data-dojo-attach-point="wrapperDiv"></div

Kind regards,


Change History (2)

comment:1 Changed 5 years ago by Ventura

The form is submitting when I apply the solution posted in the description using spring decoration because the id is in the div instead of the select element. Maybe spring uses focusNode to apply the id based where is the focusNode attached point.

Last edited 5 years ago by Ventura (previous) (diff)

comment:2 Changed 3 years ago by dylan

Milestone: tbd1.12
Resolution: patchwelcome
Status: newclosed

Given that no one has shown interest in creating a patch in the past 3+ years, I'm closing this as patchwelcome.

Note: See TracTickets for help on using tickets.