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

The activity move feature is broken on first load #98

Open
Benjamin-unige opened this issue Aug 26, 2024 · 2 comments
Open

The activity move feature is broken on first load #98

Benjamin-unige opened this issue Aug 26, 2024 · 2 comments

Comments

@Benjamin-unige
Copy link

When you try move an activity using the four way arrow on the top left of an activity it dosen't work and the browser console throw this error: Uncaught TypeError: this._dimCache is null on firefox and TypeError: Cannot read properties of null (reading 'w') on chromium

If you let go of the element and try to drag it again it works. It looks like something isn't initialized correctly on the first drag after the page loads

@Benjamin-unige
Copy link
Author

Apparently this is related to that issue https://tracker.moodle.org/browse/MDL-78771
I'm guessing remuiformat is making use of the same bit of javascript

@mahmoodalhosni
Copy link

mahmoodalhosni commented Oct 14, 2024

I have a similar issue on Moodle v 4.0+. I am able to drag the section, but not its children. Also when I attempt to drag the section from the 4 arrows, I get this in the console log:
Uncaught ReferenceError: posObjs is not defined at switchToSheet (pubhtml?gid=2082587018&widget=false&headers=false&chrome=false&range=A1:C9:62:11) at pubhtml?gid=2082587018&widget=false&headers=false&chrome=false&range=A1:C9:98:17923

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

No branches or pull requests

4 participants
@Benjamin-unige @mahmoodalhosni and others