button: don't auto set selection model if explicitly set to false

while one could use `selModel: null` to achieve this it feels really
weird that `selModel: false` could result in a selection model being
auto searched and set

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-04-18 19:10:12 +02:00
parent 271171f81a
commit 791f4ae3fb

View File

@ -65,7 +65,7 @@ Ext.define('Proxmox.button.Button', {
me.callParent();
var grid;
if (!me.selModel && me.selModel !== null) {
if (!me.selModel && me.selModel !== null && me.selModel !== false) {
grid = me.up('grid');
if (grid && grid.selModel) {
me.selModel = grid.selModel;