1 parent 1fc2f8e commit a901e5bCopy full SHA for a901e5b
1 file changed
app/js/query.js
@@ -221,7 +221,7 @@ export default class Query {
221
222
// If the corresponding value for an input field is available, try to set it
223
const key = 'permalink' in input ? input.permalink : input.id;
224
- const value = Object.prototype.hasOwnProperty.call(values, key) ? values[key] : (DEFAULTS.UI[key] || element.value);
+ const value = Object.prototype.hasOwnProperty.call(values, key) ? values[key] : (DEFAULTS.UI[key] || null);
225
element.type === 'checkbox' ? element.checked = (value === true || value === 'true') : element.value = value; // eslint-disable-line no-unused-expressions
226
227
// Call the handler by triggering a new change event on the element
0 commit comments