From 77f4d1eac7fb9f1af25888a644b6ae5589b4e97a Mon Sep 17 00:00:00 2001 From: qiang Date: Sat, 20 Jan 2024 14:39:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20input=20=E4=BD=BF=E7=94=A8=20UniInputEle?= =?UTF-8?q?ment=20=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/input/input.uvue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/component/input/input.uvue b/pages/component/input/input.uvue index 315f29a0..76042e2f 100644 --- a/pages/component/input/input.uvue +++ b/pages/component/input/input.uvue @@ -276,11 +276,11 @@ this.onMaxLengthInputValue = event.detail.value }, setCursor: function (cursor : number) { - (this.$refs['input'] as Element).focus(); + (this.$refs['input'] as UniInputElement).focus(); this.cursor = cursor; }, setSelection: function (selectionStart : number, selectionEnd : number) { - (this.$refs['input2'] as Element).focus(); + (this.$refs['input2'] as UniInputElement).focus(); this.selectionStart = selectionStart; this.selectionEnd = selectionEnd; }, -- GitLab