@integry/sdk 4.7.33 → 4.7.34

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integry/sdk",
3
- "version": "4.7.33",
3
+ "version": "4.7.34",
4
4
  "description": "Integry SDK",
5
5
  "main": "dist/umd/index.umd.js",
6
6
  "module": "dist/esm/index.csm.js",
@@ -238,6 +238,22 @@ const ListBox = (props: ListBoxProps) => {
238
238
  };
239
239
  }, [isDropdownOpen]);
240
240
 
241
+ const isInitialLoadRef = useRef(true);
242
+
243
+ useEffect(() => {
244
+ if (isInitialLoadRef.current) {
245
+ isInitialLoadRef.current = false;
246
+ return;
247
+ }
248
+ setEditableTextValue('');
249
+ setQuery('');
250
+ setSearchValue('');
251
+ if (inputRef.current) {
252
+ inputRef.current.value = '';
253
+ }
254
+ onChange('');
255
+ }, [endpointData, endpointUrl, selectedAuthId, parentFieldChanged]);
256
+
241
257
  useEffect(() => {
242
258
  if (query && isSearchable) {
243
259
  const filtered = items.filter((item) =>