From f0ee31dea9554837437f98eaf482d577d7666c21 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 10 Feb 2020 15:59:38 +0800 Subject: [PATCH] roojs-all.js roojs-debug.js Roo/form/ComboNested.js --- Roo/form/ComboNested.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Roo/form/ComboNested.js b/Roo/form/ComboNested.js index b7aa8e5b09..d81bce3d11 100644 --- a/Roo/form/ComboNested.js +++ b/Roo/form/ComboNested.js @@ -372,6 +372,8 @@ Roo.extend(Roo.form.ComboNested, Roo.form.ComboBox, { var value = this.getValue(); var prop = this.hiddenName; var store = this.stores[lvl]; + var _this = this; + if(store.getCount() < 1){ return; } @@ -380,7 +382,8 @@ Roo.extend(Roo.form.ComboNested, Roo.form.ComboBox, { // selected is at this level if(r.data[prop] == value){ var ix = store.getIndexOf(r); - this.views[lvl].select(ix, false, true); // do not trigger set active.. + _this.views[lvl].select(ix, false, true); // do not trigger set active.. + _this.loading return false; } @@ -389,7 +392,7 @@ Roo.extend(Roo.form.ComboNested, Roo.form.ComboBox, { var cret = _this.findRecordInStore(cstore, prop, value); if (cret !== false) { var ix = store.getIndexOf(r); - this.views[lvl].select(ix, false, false); // will trigger select change.. + _this.views[lvl].select(ix, false, false); // will trigger select change.. return false; } } -- 2.39.2