Ext version tested:

Browser versions tested against:

Non browser specific


DOCTYPE tested against:


Description:

Single mode selection model ignores allowDeselect and toggleOnClick options, at least for the tree panel.


According to the documetation:




/**

* @cfg {Boolean} allowDeselect

* Allow users to deselect a record in a DataView, List or Grid.

* Only applicable when the {@link #mode} is 'SINGLE'.

*/

/**

* @cfg {Boolean} toggleOnClick

* `true` to toggle the selection state of an item when clicked.

* Only applicable when the {@link #mode} is 'SINGLE'.

* Only applicable when the {@link #allowDeselect} is 'true'.

*/





I've configured my treepanel as following


Code:



...
selModel : {
mode : 'SINGLE',
allowDeselect : true,
toggleOnClick : true
}
...

After having selected a node when I click on a selected node it's not deselected despite the configuration given

Steps to reproduce the problem:

http://ift.tt/1ulwR2t

Select a node then click on a selected node it should be deselected, but it's not.


The result that was expected:



  • ExtJS 5.0.1 is to be production ready


The result that occurs instead:



  • ExtJS 5.0.1 is not production ready, clanky, flaky

  • Frustration

  • Despair