@angular/cdk 19.1.4 → 19.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/fesm2022/cdk.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Version } from '@angular/core';
2
2
 
3
3
  /** Current version of the Angular Component Development Kit. */
4
- const VERSION = new Version('19.1.4');
4
+ const VERSION = new Version('19.1.5');
5
5
 
6
6
  export { VERSION };
7
7
  //# sourceMappingURL=cdk.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"cdk.mjs","sources":["../../../../../../src/cdk/version.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {Version} from '@angular/core';\n\n/** Current version of the Angular Component Development Kit. */\nexport const VERSION = new Version('19.1.4');\n"],"names":[],"mappings":";;AAUA;MACa,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB;;;;"}
1
+ {"version":3,"file":"cdk.mjs","sources":["../../../../../../src/cdk/version.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {Version} from '@angular/core';\n\n/** Current version of the Angular Component Development Kit. */\nexport const VERSION = new Version('19.1.5');\n"],"names":[],"mappings":";;AAUA;MACa,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB;;;;"}
@@ -4011,6 +4011,8 @@ class CdkDropList {
4011
4011
  /** Registers an items with the drop list. */
4012
4012
  addItem(item) {
4013
4013
  this._unsortedItems.add(item);
4014
+ // Only sync the items while dragging since this method is
4015
+ // called when items are being initialized one-by-one.
4014
4016
  if (this._dropListRef.isDragging()) {
4015
4017
  this._syncItemsWithRef();
4016
4018
  }
@@ -4018,9 +4020,8 @@ class CdkDropList {
4018
4020
  /** Removes an item from the drop list. */
4019
4021
  removeItem(item) {
4020
4022
  this._unsortedItems.delete(item);
4021
- if (this._dropListRef.isDragging()) {
4022
- this._syncItemsWithRef();
4023
- }
4023
+ // This method might be called on destroy so we always want to sync with the ref.
4024
+ this._syncItemsWithRef();
4024
4025
  }
4025
4026
  /** Gets the registered items in the list, sorted by their position in the DOM. */
4026
4027
  getSortedItems() {