From b7e23894361857dada36f392dbc56b4397ece585 Mon Sep 17 00:00:00 2001 From: Isaac Hill <71404865+isaachilly@users.noreply.github.com> Date: Thu, 5 Nov 2026 17:12:41 +0100 Subject: [PATCH] Allow rawTextFilter to handle key up events --- lib/public/components/Filters/common/filters/rawTextFilter.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/public/components/Filters/common/filters/rawTextFilter.js b/lib/public/components/Filters/common/filters/rawTextFilter.js index 3cf2078103..483bc0c298 100644 --- a/lib/public/components/Filters/common/filters/rawTextFilter.js +++ b/lib/public/components/Filters/common/filters/rawTextFilter.js @@ -20,10 +20,11 @@ import { h } from '/js/src/index.js'; * @param {object} [configuration] filter configuration * @param {string[]} [configuration.classes] classes to apply to the filter input * @param {string} [configuration.placeholder] placeholder of the filter input + * @param {Function} [configuration.onkeyup] function called on key up in the filter input * @return {Component} the filter */ export const rawTextFilter = (filterModel, configuration) => { - const { classes = [], placeholder = '', id } = configuration || {}; + const { classes = [], placeholder = '', id, onkeyup } = configuration || {}; return h( 'input', { @@ -34,6 +35,7 @@ export const rawTextFilter = (filterModel, configuration) => { placeholder: placeholder, oninput: (e) => filterModel.update(e.target.value), onchange: (e) => filterModel.update(e.target.value, true), + onkeyup, }, ); };