Uncaught ReferenceError: typeahead_7864e59a is not defined
The reason seems to be that plugin options are not registered (actualy they are registered in head with $this->registerWidgetJs("window.{$this->_hashVar} = {$encOptions};\n", View::POS_HEAD);, but I don't have a layout since I'm using renderAjax()
Latest version of kartik-v/yii2-krajee-base (1.8) seem to have fixed this with hashVarLoadPosition, but widget-typeahead has version 1.7 locked in composer.
I have a typeahead element in a partial loaded with ajax:
I'm getting
The reason seems to be that plugin options are not registered (actualy they are registered in head with
$this->registerWidgetJs("window.{$this->_hashVar} = {$encOptions};\n", View::POS_HEAD);
, but I don't have a layout since I'm usingrenderAjax()
Latest version of
kartik-v/yii2-krajee-base
(1.8) seem to have fixed this with hashVarLoadPosition, but widget-typeahead has version 1.7 locked in composer.Thanks, Vlad