setSelection always finds child input elements and changes the checked property to true, even if cascadeSelect is false
in the configuration. This causes some unexpected behaviour when the setSelection() method is used manually and only the exact node is expected to be selected.
This PR checks configuration first and if cascadeSelect is false, just changes the :first input element.
setSelection
always finds child input elements and changes thechecked
property totrue
, even ifcascadeSelect
isfalse
in the configuration. This causes some unexpected behaviour when the setSelection() method is used manually and only the exact node is expected to be selected.This PR checks configuration first and if
cascadeSelect
isfalse
, just changes the :first input element.