0

I am using the following code in Yii2:

<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'link')->widget(MaskedInput::classname(), [
        'clientOptions' => [
            'alias' => 'url',
        ],
]) ?>
<?php ActiveForm::end(); ?>

It seems, that the input field is limited to 60 characters. How to remove this limitations?

See the URL example on: http://demos.krajee.com/masked-input

Tibor Nagy
  • 1,185
  • 1
  • 15
  • 28
  • 1
    Could it be caused by a validation rule for 'link'? – robsch Apr 02 '15 at 06:37
  • @robsch, the validations in my case are: 'url' and 'string', 'max' => 255. However it is truncated at 60 characters. Kartik's page is a simple demo, but interestingly it is tranceted to 60 charactes also. – Tibor Nagy Apr 03 '15 at 11:54

1 Answers1

1

The limitation is in jquery.inputmask. See https://github.com/RobinHerbots/jquery.inputmask/issues/863. This limitation will disappear if the issue is solved and the new jquery.inputmask.js is included in Yii2 bower package.

Tibor Nagy
  • 1,185
  • 1
  • 15
  • 28