Skip to content
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

CMS 4.12: btn-loading icon is broken in admin 1.12 #1426

Closed
lekoala opened this issue Jan 3, 2023 · 3 comments
Closed

CMS 4.12: btn-loading icon is broken in admin 1.12 #1426

lekoala opened this issue Jan 3, 2023 · 3 comments

Comments

@lekoala
Copy link
Contributor

lekoala commented Jan 3, 2023

Affected version : 4.12

since the upgrade, the animated icon is not fully displayed (you see only the first two dots, tested on chrome, windows)

from what i can see, it changed from

<div class="btn__loading-icon">
    <span class="btn__circle btn__circle--1"></span>
    <span class="btn__circle btn__circle--2"></span>
    <span class="btn__circle btn__circle--3"></span>
</div>

to

<div class="btn__loading-icon">
    <span class="btn__circle btn__circle--1">
        <span class="btn__circle btn__circle--2">
            <span class="btn__circle btn__circle--3"></span>
        </span>
    </span>
</div>

the spans are nested instead of being siblings

Pull Requests

@GuySartorelli
Copy link
Member

GuySartorelli commented Jan 8, 2023

This is added through one of two places:

  • client/src/components/FormAction/FormAction.js: getLoadingIcon()
  • client/src/legacy/LefAndMain.js: submitForm()

In both cases, the markup being added looks like this:

<div className="btn__loading-icon" >
  <span className="btn__circle btn__circle--1" />
  <span className="btn__circle btn__circle--2" />
  <span className="btn__circle btn__circle--3" />
</div>

My first guess is that the more recent version of jQuery doesn't expect self-closing span tags maybe? So it's possible changing it to <span ... ></span> will resolve this - but I haven't tested that at all (or even verified that I can reproduce this)

Update: That solves it. I'll create a PR. I'll only change the entwine part - having these be self-closing is correct for react syntax.

@lekoala
Copy link
Contributor Author

lekoala commented Jan 9, 2023

@GuySartorelli yes i can confirm it works. jquery 3.5 introduced some changes for self closing tags so that's probably why.

@GuySartorelli GuySartorelli changed the title 1.12 btn-loading icon is broken CMS 4.12: btn-loading icon is broken in admin 1.12 Feb 9, 2023
@GuySartorelli
Copy link
Member

GuySartorelli commented Feb 14, 2023

Merged - fix released as 1.12.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants