diff --git a/editor.js b/editor.js index 872c4d604..031bfdd22 100644 --- a/editor.js +++ b/editor.js @@ -345,6 +345,13 @@ function createSharedEditor(column, originalRenderCell){ function onblur(event){ var wrapperNode; + + // a blur caused by clicking within an editor widget's dropDown (e.g. dijit/form/Select) should be + // ignored, otherwise the cell reverts to the read state when the user opens the dropdown + if (cmp.dropDown && cmp.dropDown.domNode.contains(event.relatedTarget || document.activeElement)) { + return; + } + if(event && event.target){ wrapperNode = event.target; wrapperNode = domClass.contains(wrapperNode, editorFocusWrapperClassName) && wrapperNode; diff --git a/test/editor_more_widgets.html b/test/editor_more_widgets.html index 129aefa6e..0483ab8a9 100644 --- a/test/editor_more_widgets.html +++ b/test/editor_more_widgets.html @@ -12,20 +12,21 @@ font-weight: bold; padding-bottom: 0.25em; } - #grid .field-date, #grid .field-date2 { + #grid .field-date, + #grid .field-date2 { width: 16em; } #grid .field-integer { width: 6em; } #grid .field-bool { - width: 6em; + width: 7em; } .dgrid { margin: 10px; } -