File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import set from 'set-value'
3
3
import { getViewMeta , normalizeElementName } from '../element-registry'
4
4
import * as viewUtil from './utils'
5
5
import { isAndroid , isIOS } from 'tns-core-modules/platform'
6
+ import * as types from 'tns-core-modules/utils/types'
6
7
7
8
const XML_ATTRIBUTES = Object . freeze ( [
8
9
'style' ,
@@ -99,7 +100,7 @@ export default class ViewNode {
99
100
} else {
100
101
// detect expandable attrs for boolean values
101
102
// See https://vuejs.org/v2/guide/components-props.html#Passing-a-Boolean
102
- if ( typeof this . nativeView [ key ] === 'boolean' && value === '' ) {
103
+ if ( types . isBoolean ( this . nativeView [ key ] ) && value === '' ) {
103
104
value = true
104
105
}
105
106
Original file line number Diff line number Diff line change @@ -76,7 +76,9 @@ export function enter(vnode, toggleDisplay) {
76
76
77
77
const beforeEnterHook = isAppear ? beforeAppear || beforeEnter : beforeEnter
78
78
const enterHook = isAppear
79
- ? typeof appear === 'function' ? appear : enter
79
+ ? typeof appear === 'function'
80
+ ? appear
81
+ : enter
80
82
: enter
81
83
const afterEnterHook = isAppear ? afterAppear || afterEnter : afterEnter
82
84
const enterCancelledHook = isAppear
You can’t perform that action at this time.
0 commit comments