Do not fill readonly fields

This commit is contained in:
varjolintu 2023-01-27 08:39:26 +02:00
parent 06b968d60b
commit 813acc3eb9

View file

@ -663,6 +663,10 @@ kpxc.setValue = function(field, value) {
// Sets a new value to input field and triggers necessary events
kpxc.setValueWithChange = function(field, value) {
if (field.readOnly) {
return;
}
field.value = value;
field.dispatchEvent(new Event('input', { bubbles: true }));
field.dispatchEvent(new Event('change', { bubbles: true }));