app/javascript/controllers/refine/update-controller.js in refine-rails-2.11.11 vs app/javascript/controllers/refine/update-controller.js in refine-rails-2.11.12
- old
+ new
@@ -53,9 +53,10 @@
const { criterionIdValue, state } = this
const dataset = event.target.dataset
const inputId = dataset.inputId
inputKey = inputKey || dataset.inputKey || 'value'
value = value || event.target.value
+ value = value.trim()
state.updateInput(
criterionIdValue,
{
[inputKey]: value,
},