s01e04 - Button Spinner QUESTIONS/SUPPORT

Open to all! Ask other shopowners for help.
Post Reply
admin
Contributor
Posts: 217
Joined: Wed Oct 30, 2019 1:34 pm
Phoenix Version:
Has thanked: 20 times
Been thanked: 22 times

s01e04 - Button Spinner QUESTIONS/SUPPORT

Post by admin »

Questions/Support

Tags:


Join The Code Co-op to get access to your library in the Code Co-op Forum
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

Post by radhavallabh »

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
User avatar
burt
Core Team
Posts: 4550
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: s01e04 - Button Spinner QUESTIONS/SUPPORT

Post by burt »

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 am not here to build for you.
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

Post by heatherbell »

radhavallabh 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
Change Line 36
from

Code: Select all

var submitBtn = form.querySelector(':submit');
to

Code: Select all

var submitBtn = form.querySelector('button[type="submit"], input[type="submit"]');


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply