File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ interface AutowidthInput extends HTMLInputElement {
8
8
mirror : HTMLElement
9
9
options : Complete < InputAutoWidthOptions >
10
10
windowResizeHandler ?: ( ) => void
11
- sizerFunc ?: ( e ?: Event ) => ( ) => void
11
+ sizerFunc ?: ( _e ?: Event | undefined ) => void
12
12
}
13
13
14
14
export interface InputAutoWidthOptions {
@@ -113,7 +113,7 @@ export default {
113
113
mounted : function ( el : AutowidthInput , binding : DirectiveBinding , vnode : VNode ) {
114
114
const hasVModel = Object . prototype . hasOwnProperty . call ( vnode . props , '@onUpdate:modelValue' )
115
115
116
- el . sizerFunc = ( _e ?: Event ) => checkWidth . bind ( null , el )
116
+ el . sizerFunc = ( _e ?: Event ) => checkWidth ( el )
117
117
118
118
el . mirror = document . createElement ( 'div' )
119
119
copyStylesToMirror ( el )
@@ -134,7 +134,7 @@ export default {
134
134
} ,
135
135
updated : function ( el : AutowidthInput ) {
136
136
if ( el . sizerFunc ) {
137
- el . sizerFunc ( ) ( )
137
+ el . sizerFunc ( )
138
138
}
139
139
} ,
140
140
unmounted : function ( el : AutowidthInput ) {
You can’t perform that action at this time.
0 commit comments