s01e04 - Button Spinner QUESTIONS/SUPPORT
-
radhavallabh
- Senior Contributor
- Posts: 466
- Joined: Tue Oct 27, 2020 4:09 am
- Phoenix Version: 1.1.0.6
- Has thanked: 29 times
- Been thanked: 3 times
Re: s01e04 - Button Spinner QUESTIONS/SUPPORT
Hi;
The addon gives error on phoenix 1.1.0.1
Uncaught DOMException: Element.querySelector: ':submit' is not a valid selector
Kindly help fix it pls;
Regds./
radhavallabh
The addon gives error on phoenix 1.1.0.1
Uncaught DOMException: Element.querySelector: ':submit' is not a valid selector
Kindly help fix it pls;
Regds./
radhavallabh
- burt
- Core Team
- Posts: 4546
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 412 times
Re: s01e04 - Button Spinner QUESTIONS/SUPPORT
The :submit pseudo-class is not a valid CSS selector for querySelector or querySelectorAll in JavaScript — it's valid in jQuery but not in pure javascript.
I'll look into it, but it won't be for a while.
I'll look into it, but it won't be for a while.
I am not here to build for you.
I am here to build with you. Let's help each other.
I am here to build with you. Let's help each other.
-
heatherbell
- Senior Contributor
- Posts: 2540
- Joined: Mon Oct 07, 2019 4:39 am
- Phoenix Version:
- Has thanked: 35 times
- Been thanked: 243 times
Re: s01e04 - Button Spinner QUESTIONS/SUPPORT
Change Line 36radhavallabh wrote: ↑Tue Apr 29, 2025 11:41 am The addon gives error on phoenix 1.1.0.1
Uncaught DOMException: Element.querySelector: ':submit' is not a valid selector
from
Code: Select all
var submitBtn = form.querySelector(':submit');Code: Select all
var submitBtn = form.querySelector('button[type="submit"], input[type="submit"]');