M
M
Maxim Timofeev2016-04-16 16:12:50
JavaScript
Maxim Timofeev, 2016-04-16 16:12:50

How to make validateOnChange and validateOnBlur work in YII2 activeForm?

I use activeForm, ajax validation and saving.
All fields work well, except for the field with the editor (widget https://github.com/vova07/yii2-imperavi-widget )
It stubbornly does not fire the validateOnChange and validateOnBlur events. As a result, validation and saving fail. And they work only with the loss of focus of any other input.
How can this be resolved? How to call manually in js validateOnChange and validateOnBlur for activeform? Maybe someone has already solved this?

PS tried another version of the widget ( https://github.com/asofter/yii2-imperavi-redactor ) same song.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question