Pass a copy of the options to the tiles

This commit is contained in:
RMidhunSuresh 2022-05-08 19:14:51 +05:30
parent 23b621492f
commit 139a87de99

View File

@ -35,7 +35,7 @@ export class TilesCollection extends BaseObservableList {
_createTile(entry) {
const Tile = this._tileOptions.tileClassForEntry(entry);
if (Tile) {
return new Tile(entry, this._tileOptions);
return new Tile(entry, { ...this._tileOptions });
}
}