Accept any valid number, positive or negative
This commit is contained in:
parent
027af0dd9f
commit
74cd856f8a
|
|
@ -11,7 +11,7 @@
|
|||
class="form-control"
|
||||
autocomplete="off"
|
||||
maxlength="255"
|
||||
pattern="\d+"
|
||||
pattern="-?\d+(\.\d+)?"
|
||||
<?= $field->getAttributes() ?>
|
||||
/>
|
||||
<?php endif ?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue