-
Notifications
You must be signed in to change notification settings - Fork 917
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
[Bug] window.intlTelInput is not defined #5775
Comments
Based on the information provided in the knowledge sources, I can address this issue related to the phone field in Backpack's inline create functionality. This appears to be a known bug that has been reported and addressed in recent updates. The error you're encountering, "window.intlTelInput is not defined", is likely related to the phone field not working correctly in the inline create modal. This issue has been reported and discussed in several GitHub issues:
The good news is that this bug has been fixed in recent updates to Backpack. Here are the steps you should take to resolve this issue:
If you're still experiencing issues after these steps, it's possible that there might be a conflict with other JavaScript on your page or a configuration issue specific to your setup. For the ClassicEditor error you mentioned, this is likely related to the WYSIWYG editor and not directly connected to the phone field issue. You may need to ensure that the CKEditor scripts are properly loaded for the inline create functionality. If the problem persists after following these steps, I recommend opening a new issue on the Backpack CRUD GitHub repository with detailed information about your setup and the steps to reproduce the issue. Laravel-Backpack/CRUD issues Laravel-Backpack/community-forum issues ℹ️ Please note our AI Bot does not reply to follow-ups, this will be the only AI answer in this thread. If the AI helped you find the answer, please mark it as answered or write details below so it can learn. Then close the conversation. If not, please give more information for when a human reads this. ℹ️ Relevant sources: Github Issue (closed): [Bug] date_picker field is not working in incline create |
Hello @cod3rshotout I try this with our demo and is working normally ![]() Could you try with an update
If the problem is still there, please share step by step to reproduce the error in my side. I try with these versions:
Cheers. |
Due to not activity, I will close this issue, but please feel free to re-open or create a new one if needed. Cheers. |
Bug report
Please note: All issues must be submitted in English. If not, they will be closed automatically.
What I did
I defined the following field in the controller:
and then I used inline_create on another controller.
What I expected to happen
When I click on the add inline btn the modal should appear.
What happened
When I clicked on the add inline btn the modal not appear, and in console the following error message is showing:
VM8860:21 Uncaught TypeError: window.intlTelInput is not a function
at bpFieldInitPhoneElement (:21:34)
at HTMLInputElement. (edit:2858:31)
at S.each (jquery.min.js?8b76a896a620:2:3003)
at S.fn.init.each (jquery.min.js?8b76a896a620:2:1481)
at initializeFieldsWithJavascript (edit:2853:76)
at triggerModal (edit:2398:9)
at Object.success (edit:2341:21)
at c (jquery.min.js?8b76a896a620:2:28327)
at Object.fireWith [as resolveWith] (jquery.min.js?8b76a896a620:2:29072)
at l (jquery.min.js?8b76a896a620:2:80045)
What I've already tried to fix it
if I comment the field the modal appear but the following error is raised:
Uncaught (in promise) ReferenceError: ClassicEditor is not defined
If I comment the textarea too, no error in console are displayed.
Is it a bug in the latest version of Backpack?
After I run
composer update backpack/crud
the bug... is it still there?Yes
Backpack, Laravel, PHP, DB version
When I run
php artisan backpack:version
the output is:Additional Information
Here's some more info that could be helpful in reproducing or debugging:
Note: Issues that cannot be reproduced or lack necessary details to diagnose could be closed.
PHP VERSION:
8.3.4
PHP EXTENSIONS:
Core, date, libxml, openssl, pcre, sqlite3, zlib, ctype, curl, dom, fileinfo, filter, hash, iconv, json, mbstring, SPL, session, PDO, pdo_sqlite, standard, posix, random, readline, Reflection, Phar, SimpleXML, tokenizer, xml, xmlreader, xmlwriter, mysqlnd, bcmath, exif, gd, gmp, imagick, intl, memcached, pcntl, pdo_mysql, pdo_pgsql, redis, soap, sodium, zip
LARAVEL VERSION:
11.31.0.0
BACKPACK PACKAGE VERSIONS:
backpack/basset: 1.3.6
backpack/crud: 6.7.55
backpack/filemanager: 3.0.9
backpack/generators: v4.0.7
backpack/logmanager: v5.0.2
backpack/permissionmanager: 7.2.1
backpack/pro: 2.2.22
backpack/settings: 3.1.1
backpack/theme-tabler: 1.2.15
The text was updated successfully, but these errors were encountered: