Is there any way to disable click event for captcha image? In the first version of Yii there is clickableImage
option for captcha. Now i am doing like that:
$form->field($model, 'verifyCode', ['enableAjaxValidation' => false, 'options'=>['tag' => 'span'] ])->widget(
Captcha::className(), [
'imageOptions' => ['id' => 'captcha-image'],
'template' => '{image}',
'captchaAction' => Yii::$app->captcha->route,
]
);
$this->registerJs("$('#captcha-image').off('click');", View::POS_READY, '');