Skip to content

Commit 8c7fef1

Browse files
author
ppinette
committed
[ui-dsfr] corrige la gestion du null sur le select
1 parent df130ca commit 8c7fef1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vertigo-ui-dsfr/src/methods.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default {
1616
return {value: object[valueField], text: object[labelField].toString()} // a label is always a string
1717
});
1818
if (nullText !== undefined && nullText !== null && nullText !== '') {
19-
result.unshift({value: null, text: nullText});
19+
result.unshift({value: '', text: nullText});
2020
}
2121
return result;
2222
},

0 commit comments

Comments
 (0)