kartik-v/yii2-number

Bug using widget into Form Builder

Closed this issue · 1 comments

Hi, the form with kartik\number\NumberControl doesn't work anymore.

The form field configuration is

'INPUT_NUM_1'       => [
                'attribute'   => 'INPUT_NUM_1',
                'type'        => constant('\kartik\builder\Form::INPUT_WIDGET'),
                'widgetClass' => 'kartik\number\NumberControl',
                'options'     => [
                    'maskedInputOptions' => [
                        'allowMinus' => false,
                        'rightAlign' => false,
                        'digits'     => 0,
                    ],
                ],
                'label'       => $this->getAttributeLabel('INPUT_NUM_1'),
            ],

The input is not inserted into the right attribute, so when I load() the model the value isn't passed
immagine

It was a jquery problem