function sanitizeInput(event) {
event.target.value = event.target.value.replace(/[^\d.]/g, "");
event.target.value = event.target.value.replace(/^\./g, "");
event.target.value = event.target.value.replace(/\.{2,}/g, ".");
event.target.value = event.target.value.replace(".", "$#$").replace(/\./g, "").replace("$#$", ".");
event.target.value = event.target.value.replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3');
}
dom.js
import { sanitizeInput } from '../../commons/dom'
export { sanitizeInput };
Error message: "Property or method 'sanitizeInput' is not defined on the instance but referenced during render."