Skip to content

Commit 6f880c1

Browse files
authored
Update props.js
check null and undefined
1 parent b3c57eb commit 6f880c1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/utils/props.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ import { camelize, hyphenate } from './helpers';
99
* @returns {*}
1010
*/
1111
export function convertAttributeValue(value, overrideType) {
12+
if (value === null || value === undefined) {
13+
return value
14+
}
1215
let propsValue = value;
1316
const isBoolean = ['true', 'false'].indexOf(value) > -1;
1417
const valueParsed = parseFloat(propsValue, 10);

0 commit comments

Comments
 (0)