Merge "VE: Update group ordering when node is converted from placeholder"

This commit is contained in:
jenkins-bot 2023-11-10 21:54:42 +00:00 committed by Gerrit Code Review
commit 8ef6751c55

View file

@ -492,6 +492,9 @@ ve.dm.MWReferenceNode.prototype.removeFromInternalList = function () {
};
ve.dm.MWReferenceNode.prototype.onAttributeChange = function ( key, from, to ) {
if ( key === 'placeholder' ) {
this.getDocument().getInternalList().markGroupAsChanged( this.registeredListGroup );
}
if (
( key !== 'listGroup' && key !== 'listKey' ) ||
( key === 'listGroup' && this.registeredListGroup === to ) ||