From 586f1203e6737c13d0374d224bfbd8acd1150c44 Mon Sep 17 00:00:00 2001 From: maxam2017 Date: Sat, 8 Jan 2022 23:13:10 +0800 Subject: [PATCH] fix: let more types of input check value before updating --- src/compiler/compile/render_dom/wrappers/Element/Binding.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/compiler/compile/render_dom/wrappers/Element/Binding.ts b/src/compiler/compile/render_dom/wrappers/Element/Binding.ts index bc218a510b..bf7130cb85 100644 --- a/src/compiler/compile/render_dom/wrappers/Element/Binding.ts +++ b/src/compiler/compile/render_dom/wrappers/Element/Binding.ts @@ -120,7 +120,9 @@ export default class BindingWrapper { type === '' || type === 'text' || type === 'email' || - type === 'password' + type === 'password' || + type === 'search' || + type === 'url' ) { update_conditions.push( x`${parent.var}.${this.node.name} !== ${this.snippet}`