From 7ab03de43e5f05aadc5d1d3b60d0b3253c824a7a Mon Sep 17 00:00:00 2001 From: wujun <897415845@qq.com> Date: Wed, 2 Aug 2023 14:42:08 +0800 Subject: [PATCH] Compatible with fixfox does not trigger blur events --- .../src/components/Form/LabeledInput/LabeledInput.vue | 5 +++++ shell/components/form/UnitInput.vue | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/rancher-components/src/components/Form/LabeledInput/LabeledInput.vue b/pkg/rancher-components/src/components/Form/LabeledInput/LabeledInput.vue index 9d84100f10a..61d8fbdc402 100644 --- a/pkg/rancher-components/src/components/Form/LabeledInput/LabeledInput.vue +++ b/pkg/rancher-components/src/components/Form/LabeledInput/LabeledInput.vue @@ -232,6 +232,10 @@ export default ( this.onBlurLabeled(); }, + onChange(event: string): void { + this.$emit('blur', event); + }, + escapeHtml } }); @@ -299,6 +303,7 @@ export default ( @input="onInput($event.target.value)" @focus="onFocus" @blur="onBlur" + @change="onChange" > diff --git a/shell/components/form/UnitInput.vue b/shell/components/form/UnitInput.vue index 8d5ee02a8e7..9992b0831a2 100644 --- a/shell/components/form/UnitInput.vue +++ b/shell/components/form/UnitInput.vue @@ -210,7 +210,6 @@ export default { } else if (out) { out = this.unit ? parseSi(`${ out }${ this.unit }`) : parseInt(out); } - this.$emit('input', out); }, }