@sprucelabs/spruce-people-utils 1.0.30 → 1.0.31
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.
|
@@ -158,6 +158,7 @@ export default class PersonSelectInputViewController extends AbstractViewControl
|
|
|
158
158
|
return __awaiter(this, void 0, void 0, function* () {
|
|
159
159
|
const id = this.getValue();
|
|
160
160
|
if (id && this.lastLoadedPersonId !== id) {
|
|
161
|
+
this.shouldIgnoreNextChange = true;
|
|
161
162
|
this.lastLoadedPersonId = id;
|
|
162
163
|
yield this.setRenderedValue('Loading...');
|
|
163
164
|
try {
|
|
@@ -168,6 +169,7 @@ export default class PersonSelectInputViewController extends AbstractViewControl
|
|
|
168
169
|
searchPersonId: id,
|
|
169
170
|
},
|
|
170
171
|
});
|
|
172
|
+
this.shouldIgnoreNextChange = true;
|
|
171
173
|
yield this.setRenderedValue(renderLabel(person));
|
|
172
174
|
}
|
|
173
175
|
catch (err) {
|
|
@@ -155,6 +155,7 @@ class PersonSelectInputViewController extends heartwood_view_controllers_1.Abstr
|
|
|
155
155
|
async _loadCurrentPerson() {
|
|
156
156
|
const id = this.getValue();
|
|
157
157
|
if (id && this.lastLoadedPersonId !== id) {
|
|
158
|
+
this.shouldIgnoreNextChange = true;
|
|
158
159
|
this.lastLoadedPersonId = id;
|
|
159
160
|
await this.setRenderedValue('Loading...');
|
|
160
161
|
try {
|
|
@@ -165,6 +166,7 @@ class PersonSelectInputViewController extends heartwood_view_controllers_1.Abstr
|
|
|
165
166
|
searchPersonId: id,
|
|
166
167
|
},
|
|
167
168
|
});
|
|
169
|
+
this.shouldIgnoreNextChange = true;
|
|
168
170
|
await this.setRenderedValue((0, searchPeopleToSuggestions_1.renderLabel)(person));
|
|
169
171
|
}
|
|
170
172
|
catch (err) {
|