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

BUG. In rearrange, modal X (close) causes problems #648

Open
thundor opened this issue Oct 16, 2024 · 3 comments
Open

BUG. In rearrange, modal X (close) causes problems #648

thundor opened this issue Oct 16, 2024 · 3 comments

Comments

@thundor
Copy link

thundor commented Oct 16, 2024

FIX: in dialog.js
AFTER:

if ((typeof afterHide !== 'undefined')) {
	Y.soon(function() {
		afterHide(parent);
	});
}

Add this:
parent.close();

When rearranging, when clicking the X button on the dialog (close dialog), the modal element is not deleted but rather hidden, causing problems on the next modal open, (the colour field is not rendered correctly, opening another field a second time and saving breaks the field).

@carlicockrell
Copy link

Hello,

I work for Moodle as a Learning Designer consultant, and I believe we witnessed something interesting because of this bug. We noticed this same behavior, but it also completely renamed/chose different dynamic fields for the positional elements. For example, we had 5 different course custom fields, and each had a different name, such as eitp_1, eitp_2, etc. After working on the repositioning, all of the custom fields pointed to the same thing, and had all renamed to eitp_1. It was pretty strange behavior and caused us to have to start the certificate over because any adjustments we attempted after that would not save properly.

@mdjnelson
Copy link
Owner

Thanks @thundor, are you able to create a PR for this?

@thundor
Copy link
Author

thundor commented Oct 18, 2024

Thanks @thundor, are you able to create a PR for this?

Sorry, i never done it and i'm too cramped with work to learn this now

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

3 participants