@integry/sdk 4.5.21 → 4.5.22
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/dist/esm/index.csm.js +1778 -1778
- package/dist/umd/index.umd.js +1778 -1778
- package/package.json +1 -1
- package/src/components/MultipurposeField/TagMenu/index.ts +9 -1
package/package.json
CHANGED
|
@@ -8,6 +8,7 @@ import { isScrolledIntoView } from '@/utils/common';
|
|
|
8
8
|
import { searchJSON } from '@/utils/searchJson';
|
|
9
9
|
import { Input } from '@/components/Input';
|
|
10
10
|
import { createElement } from 'preact/compat';
|
|
11
|
+
import { cloneElement } from 'preact/compat';
|
|
11
12
|
import { TagOptions } from '../TagOptions';
|
|
12
13
|
import { ThreeDotLoader } from '../../ThreeDotLoader';
|
|
13
14
|
import styles from './styles.module.scss';
|
|
@@ -213,10 +214,17 @@ const FieldDropdown = (props: FieldMenuProps) => {
|
|
|
213
214
|
}
|
|
214
215
|
|
|
215
216
|
let tagsComponentRender: any = null;
|
|
217
|
+
let tagsComponentRenderClone: any = null;
|
|
216
218
|
if (tagsComponent) {
|
|
217
219
|
tagsComponentRender = createElement(tagsComponent, {
|
|
218
220
|
onSelect: () => alert('Selected!'),
|
|
219
221
|
});
|
|
222
|
+
|
|
223
|
+
tagsComponentRenderClone = cloneElement(tagsComponentRender);
|
|
224
|
+
// eslint-disable-next-line no-console
|
|
225
|
+
console.log(tagsComponentRender);
|
|
226
|
+
// eslint-disable-next-line no-console
|
|
227
|
+
console.log(tagsComponentRenderClone);
|
|
220
228
|
}
|
|
221
229
|
|
|
222
230
|
return html` <div
|
|
@@ -344,7 +352,7 @@ const FieldDropdown = (props: FieldMenuProps) => {
|
|
|
344
352
|
</div>`
|
|
345
353
|
: html` <div className="${styles.mappedFieldMenu}">
|
|
346
354
|
${tagsComponent
|
|
347
|
-
? html`<div>${
|
|
355
|
+
? html`<div>${tagsComponentRenderClone}</div>`
|
|
348
356
|
: html`${Object.keys(
|
|
349
357
|
!isEditable ? searchJSON(tags, searchValue) : tags,
|
|
350
358
|
).length > 0
|