From 849e70e141b579fb738df312074a215c8b126572 Mon Sep 17 00:00:00 2001 From: Brook Gagnon Date: Sun, 11 Aug 2024 03:04:00 +0000 Subject: [PATCH] fix number field advanced search --- ui/fields/number.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/fields/number.js b/ui/fields/number.js index 38741818..42112812 100644 --- a/ui/fields/number.js +++ b/ui/fields/number.js @@ -23,7 +23,7 @@ class OBFieldNumber extends OBField { } inputChange(event) { - this.value = event.target.value; + this._value = parseInt(event.target.value); } set value(value) { @@ -55,3 +55,6 @@ class OBFieldNumber extends OBField { } customElements.define("ob-field-number", OBFieldNumber); + +class OBFieldInteger extends OBFieldNumber {} +customElements.define("ob-field-integer", OBFieldInteger);