dont coerce all falsy values to empty strings

pull/4853/head
Richard Harris 4 years ago
parent 6397588e50
commit 081f7cd878

@ -192,9 +192,7 @@ export function set_data(text, data) {
}
export function set_input_value(input, value) {
if (value != null || input.value) {
input.value = value || '';
}
input.value = value == null ? '' : value;
}
export function set_input_type(input, type) {

Loading…
Cancel
Save