Merge pull request #1306 from Flynsarmy/numberPattern
Allow overriding number field pattern attribute
This commit is contained in:
commit
93f7b7800b
|
|
@ -10,7 +10,7 @@
|
|||
placeholder="<?= e(trans($field->placeholder)) ?>"
|
||||
class="form-control"
|
||||
autocomplete="off"
|
||||
pattern="-?\d+(\.\d+)?"
|
||||
<?= $field->hasAttribute('pattern') ? '' : 'pattern="-?\d+(\.\d+)?"' ?>
|
||||
<?= $field->hasAttribute('maxlength') ? '' : 'maxlength="255"' ?>
|
||||
<?= $field->getAttributes() ?>
|
||||
/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue