@integry/sdk 4.7.20 → 4.7.21
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
|
@@ -266,6 +266,18 @@ const MultipurposeField = (props: MultipurposeFieldProps) => {
|
|
|
266
266
|
// Optional: trigger input event so Tagify re-parses
|
|
267
267
|
tagify.DOM.input.dispatchEvent(new Event('input'));
|
|
268
268
|
});
|
|
269
|
+
|
|
270
|
+
tagify.on('keydown', (e: any) => {
|
|
271
|
+
if (
|
|
272
|
+
e?.detail?.event?.code === 'Enter' &&
|
|
273
|
+
tagsTree &&
|
|
274
|
+
type === 'TEXTAREA'
|
|
275
|
+
) {
|
|
276
|
+
e.preventDefault();
|
|
277
|
+
document.execCommand('insertHTML', false, '<br>');
|
|
278
|
+
return false;
|
|
279
|
+
}
|
|
280
|
+
});
|
|
269
281
|
}
|
|
270
282
|
} else if (
|
|
271
283
|
textfield &&
|