diff --git a/modules/backend/widgets/form/partials/_field_number.htm b/modules/backend/widgets/form/partials/_field_number.htm index 5e5b3fa64..4abe6c7aa 100644 --- a/modules/backend/widgets/form/partials/_field_number.htm +++ b/modules/backend/widgets/form/partials/_field_number.htm @@ -10,7 +10,7 @@ placeholder="placeholder)) ?>" class="form-control" autocomplete="off" - pattern="-?\d+(\.\d+)?" + hasAttribute('pattern') ? '' : 'pattern="-?\d+(\.\d+)?"' ?> hasAttribute('maxlength') ? '' : 'maxlength="255"' ?> getAttributes() ?> />