@kubex/zinc 1.1.145 → 1.1.146
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
|
@@ -357,8 +357,10 @@ export default class ZnTranslations extends ZincElement implements ZincFormContr
|
|
|
357
357
|
|
|
358
358
|
private handleKeyDown = (event: KeyboardEvent) => {
|
|
359
359
|
if (event.key === 'Enter') {
|
|
360
|
-
// An inline edit commits on Enter itself,
|
|
361
|
-
|
|
360
|
+
// An inline edit commits on Enter itself, a textarea needs it for the
|
|
361
|
+
// newline, and a remarkd editor for a new paragraph.
|
|
362
|
+
if (event.target instanceof ZnInlineEdit || event.target instanceof ZnTextarea
|
|
363
|
+
|| event.target instanceof ZnRemarkdEditor) {
|
|
362
364
|
return;
|
|
363
365
|
}
|
|
364
366
|
|