VE: Update group ordering when node is converted from placeholder

Logically depends on I45c7ab5fe5cd.

Bug: T332799
Change-Id: I143fa0d45572677d09320fff88076a53253ad714
This commit is contained in:
Ed Sanders 2023-10-16 15:48:41 +01:00
parent 2d6868cfe3
commit b4b6dbba95

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 ) ||