PDA

View Full Version : Grid CellEditing clashes with Drag and Drop



Greendrake
17 Aug 2015, 2:39 AM
Fiddle: https://fiddle.sencha.com/#fiddle/s9b

Problem: After clicking on a cell to start editing, a next click on it completes editing.

How to reproduce:
Single-click on an email or name cell to activate editor. Textfield appears with text selected in it.
Single-click on the selected text again as if you wanted to put the blinking cursor in the middle of the text. See that editing unexpectedly finishes.
Expected behavior:
Clicking on the text while it is being edited should merely put the blinking cursor where clicked. Editing should stay still.

Tested in:
Chrome 44.0.2403.155 (64-bit) (Linux)
Firefox 40.0 (Linux)

The problem disappears if not using drag and drop plugin.

Also note that it all worked fine in Ext JS 5.1.1.451.

UPDATE:

Found temporary workaround: using a custom DragZone where the isPreventDrag (https://docs.sencha.com/extjs/6.0/6.0.0-classic/#!/api/Ext.view.DragZone-method-isPreventDrag) method returns true in case cell editing is going on.

Greendrake
22 Aug 2015, 12:11 AM
We will make it our priority to review this report.
I think that message should also be considered a bug :D

bjdurham85
31 Aug 2015, 12:19 PM
Thanks for the report, this bug has been corrected and will be released in a future release.

Szandra
12 Feb 2016, 8:00 AM
Hi! Have this problem been corrected? If yes, which version should I use to avoid this bug?

Greendrake
12 Feb 2016, 1:34 PM
Hi! Have this problem been corrected? If yes, which version should I use to avoid this bug?
Corrected in 6.0.1.

Szandra
13 Feb 2016, 3:06 AM
Corrected in 6.0.1.

Thank you! I encountered the error because we use ExtJS GPL version 6.0.0.640.