@monolith-forensics/monolith-ui 1.3.105 → 1.3.109
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.
|
@@ -91,6 +91,18 @@ const TextAreaInput = forwardRef((props, ref) => {
|
|
|
91
91
|
// Trigger SelectBox to open using the new enhanced props
|
|
92
92
|
setTriggerSelectBoxOpen(true);
|
|
93
93
|
}
|
|
94
|
+
else if (item.value === "clear") {
|
|
95
|
+
// Built-in clear functionality
|
|
96
|
+
const textarea = textareaRef.current;
|
|
97
|
+
if (textarea) {
|
|
98
|
+
textarea.value = "";
|
|
99
|
+
textarea.focus();
|
|
100
|
+
// Trigger change event so controlled components update
|
|
101
|
+
const event = new Event("input", { bubbles: true });
|
|
102
|
+
textarea.dispatchEvent(event);
|
|
103
|
+
}
|
|
104
|
+
onActionMenuSelect === null || onActionMenuSelect === void 0 ? void 0 : onActionMenuSelect(item);
|
|
105
|
+
}
|
|
94
106
|
else {
|
|
95
107
|
onActionMenuSelect === null || onActionMenuSelect === void 0 ? void 0 : onActionMenuSelect(item);
|
|
96
108
|
}
|