We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 432b2fe commit 3973f80Copy full SHA for 3973f80
src/jigsaw/pc-components/select/select.ts
@@ -245,6 +245,13 @@ export class JigsawSelect extends AbstractJigsawComponent implements ControlValu
245
if (this._value == newValue) {
246
return;
247
}
248
+ let trackItemBy: string[];
249
+ if (this.trackItemBy) {
250
+ trackItemBy = Object.prototype.toString.call(this.trackItemBy) == '[object Array]' ? <string[]>this.trackItemBy : [this.trackItemBy.toString()];
251
+ }
252
+ if (this.initialized && CommonUtils.compareWithKeyProperty(this._value, newValue, trackItemBy)) {
253
+ return;
254
255
this._propagateChange(newValue);
256
this._value = newValue;
257
if (this.initialized) {
0 commit comments