From eff309f9d8eb0262c500cb3feb09cdce50fb097e Mon Sep 17 00:00:00 2001 From: Treecat Date: Fri, 28 Apr 2023 14:32:41 +0800 Subject: [PATCH] =?UTF-8?q?BI-125767=20fix:popup=E5=A4=9A=E5=A4=84this?= =?UTF-8?q?=E6=8C=87=E5=90=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/case/combo/textvaluecombo/popup.textvalue.js | 7 ++++--- packages/fineui/src/core/constant/var.js | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/fineui/src/case/combo/textvaluecombo/popup.textvalue.js b/packages/fineui/src/case/combo/textvaluecombo/popup.textvalue.js index 6ac60cfc8..fa7571d5a 100644 --- a/packages/fineui/src/case/combo/textvaluecombo/popup.textvalue.js +++ b/packages/fineui/src/case/combo/textvaluecombo/popup.textvalue.js @@ -58,8 +58,9 @@ export class TextValueComboPopup extends Pane { listeners: [ { eventName: Controller.EVENT_CHANGE, - action: (type, val, obj) => { - this.fireEvent(Controller.EVENT_CHANGE, arguments); + action: (...args) => { + const [type, val, obj] = args; + this.fireEvent(Controller.EVENT_CHANGE, args); if (type === Events.CLICK) { this.fireEvent(TextValueComboPopup.EVENT_CHANGE, val, obj); } @@ -101,7 +102,7 @@ export class TextValueComboPopup extends Pane { listeners: [ { eventName: SelectList.EVENT_CHANGE, - action(val) { + action: (val) => { this.fireEvent(TextValueComboPopup.EVENT_CHANGE, val); }, } diff --git a/packages/fineui/src/core/constant/var.js b/packages/fineui/src/core/constant/var.js index 30f3246c0..06bca51f6 100644 --- a/packages/fineui/src/core/constant/var.js +++ b/packages/fineui/src/core/constant/var.js @@ -3,8 +3,9 @@ */ import { isNumber } from "../2.base"; import { Cache } from "../structure/cache"; +import { _global } from "../0.foundation"; -export let EVENT_BLUR = Cache.getItem("event.blur", {typeConversion: true, defaultValue: true}); +export let EVENT_BLUR = _global.localStorage ? Cache.getItem("event.blur", {typeConversion: true, defaultValue: true}) : true; export const setEventBlur = (v) => { EVENT_BLUR = v, Cache.setItem("event.blur", v) }; export const MAX = 0xfffffffffffffff;