File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 192
192
this .showOptions ()
193
193
}
194
194
195
- if (this .searchTerm .constructor .name .toLowerCase () !== ' inputevent' ) {
195
+ if (this .searchTerm .constructor .toString (). match ( / function ( \w * ) / )[ 1 ] .toLowerCase () !== ' inputevent' ) {
196
196
this .$emit (' md-changed' , this .searchTerm )
197
197
}
198
198
},
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export default {
21
21
return this . localValue
22
22
} ,
23
23
set ( value ) {
24
- if ( value . constructor . name . toLowerCase ( ) !== 'inputevent' ) {
24
+ if ( value . constructor . toString ( ) . match ( / f u n c t i o n ( \w * ) / ) [ 1 ] . toLowerCase ( ) !== 'inputevent' ) {
25
25
this . $nextTick ( ( ) => {
26
26
this . localValue = value
27
27
} )
Original file line number Diff line number Diff line change 52
52
watch: {
53
53
mdActive (active ) {
54
54
const isBoolean = typeof active === ' boolean'
55
- const isEvent = active .constructor .name .toLowerCase () === ' mouseevent'
55
+ const isEvent = active .constructor .toString (). match ( / function ( \w * ) / )[ 1 ] .toLowerCase () === ' mouseevent'
56
56
57
57
if (isBoolean && this .mdCentered && active) {
58
58
this .startRipple ({
You can’t perform that action at this time.
0 commit comments