File tree 1 file changed +9
-1
lines changed
src/compile/render-dom/wrappers/Element
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ export default class BindingWrapper {
111
111
112
112
let update_conditions : string [ ] = this . needs_lock ? [ `!${ lock } ` ] : [ ] ;
113
113
114
- const dependency_array = [ ...this . node . expression . dependencies ]
114
+ const dependency_array = [ ...this . node . expression . dependencies ] ;
115
115
116
116
if ( dependency_array . length === 1 ) {
117
117
update_conditions . push ( `changed.${ dependency_array [ 0 ] } ` )
@@ -121,6 +121,14 @@ export default class BindingWrapper {
121
121
)
122
122
}
123
123
124
+ if ( parent . node . name === 'input' ) {
125
+ const type = parent . node . get_static_attribute_value ( 'type' ) ;
126
+
127
+ if ( type === null || type === "" || type === "text" ) {
128
+ update_conditions . push ( `(${ parent . var } .${ this . node . name } !== ${ this . snippet } )` )
129
+ }
130
+ }
131
+
124
132
// model to view
125
133
let update_dom = get_dom_updater ( parent , this ) ;
126
134
You can’t perform that action at this time.
0 commit comments