-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
replaceall is not a function #285
Comments
я думаю проблема была в том, что метод определялся после вызова в коде, перенес в начало файла 2fcdcd6 но у меня в принципе не воспроизводилась эта ошибка |
Почему то ошибка не пропала после фикса. Uncaught TypeError: settings.jsTemplates[i].replaceAll is not a function |
@Vadim0004 ну тогда нужно больше информации: что за браузер, какая версия виджета, пример кода для воспроизведения |
<script src="/assets/a5bb85d1/yii.js?v=1553677094"></script>
-- Может проблема что jquery.multipleInput.js подключается у меня до activeForm? |
@Vadim0004 я же попросил написать браузер, версию виджета и ваш пример кода |
Версия Crome - Version 70.0.3538.110 (Official Build) (64-bit).
|
При добавлении нового инпута проиисходит ошибка (replaceall is not a function).
jquery.multipleInput.js?v=1554989766:291 Uncaught TypeError: settings.jsTemplates[i].replaceAll is not a function
at addInput (jquery.multipleInput.js?v=1554989766:291)
at HTMLDivElement. (jquery.multipleInput.js?v=1554989766:139)
at HTMLDivElement.dispatch (jquery.js?v=1553677094:5183)
at HTMLDivElement.elemData.handle (jquery.js?v=1553677094:4991)
ПРи добавлении нового инпута не пересчитует счетчик из за этого. Все новые инпуты с одинаковым параметром name="ModalForm[codes][1]".
field($model, 'codes')->widget(MultipleInput::class, [ 'max' => 50, 'min' => 0, // should be at least 2 rows 'allowEmptyList' => false, 'enableGuessTitle' => true, 'addButtonPosition' => MultipleInput::POS_HEADER, // show add button in the header ])->label(false);?>The text was updated successfully, but these errors were encountered: