@topconsultnpm/sdkui-react 6.22.0-dev3.27 → 6.22.0-dev3.28

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.
@@ -139,7 +139,10 @@ const ChatPanel = ({ width, onWidthChange, messages, conversationId, isThinking,
139
139
  const TMChatInput = ({ value, onChange, onSend, placeholder = 'Scrivi la tua domanda...', disabled = false, inputRef, tooltip = 'Ricerca AI' }) => {
140
140
  const isDisabled = disabled || value.length < 2;
141
141
  return (_jsxs(ChatInputWrapper, { children: [_jsx(ChatInputTextarea, { ref: inputRef, placeholder: placeholder, value: value, onChange: (e) => onChange(e.target.value), onKeyDown: (e) => {
142
- if (e.key === 'Enter' && !e.shiftKey && !e.nativeEvent.isComposing) {
142
+ if (e.key !== 'Enter')
143
+ return;
144
+ e.stopPropagation();
145
+ if (!e.shiftKey && !e.nativeEvent.isComposing) {
143
146
  e.preventDefault();
144
147
  if (!isDisabled)
145
148
  onSend();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@topconsultnpm/sdkui-react",
3
- "version": "6.22.0-dev3.27",
3
+ "version": "6.22.0-dev3.28",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",