Min-Max Filtering with Textinput

You should convert the value to number:

let min = Number($w('#input1').value);

etc…