-
-
Notifications
You must be signed in to change notification settings - Fork 941
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
SAK-50438 Rubrics trigger event so that criteria get updated on a reorder #12927
Conversation
@@ -37,6 +37,9 @@ export class SakaiRubricCriteria extends RubricsElement { | |||
this.querySelector(`[data-criterion-id="${e.detail.data.criterionId}"] .drag-handle`).focus(); | |||
}); | |||
|
|||
// Reordering doesn't really care about the weight changes, but the event does get the criteria to update in the parent rubric object |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have you tried this.requestUpdate()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did, and it didn't work. I'm guessing because the "parent" doesn't know anything about the updated criteria?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me poke at it again...
conflicts |
I see that you merged my other rubric PR, so I'll get this one updated to fix the conflicts, hopefully tonight. |
Add unit test