fix(dashboard): Allow using the Enter key in product create Textarea (#11488)
Resolves SUP-911
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@medusajs/dashboard": patch
|
||||
---
|
||||
|
||||
fix(dashboard): Allow using the Enter key in product create Textarea
|
||||
+7
@@ -220,6 +220,13 @@ export const ProductCreateForm = ({
|
||||
onKeyDown={(e) => {
|
||||
// We want to continue to the next tab on enter instead of saving as draft immediately
|
||||
if (e.key === "Enter") {
|
||||
if (
|
||||
e.target instanceof HTMLTextAreaElement &&
|
||||
!(e.metaKey || e.ctrlKey)
|
||||
) {
|
||||
return
|
||||
}
|
||||
|
||||
e.preventDefault()
|
||||
|
||||
if (e.metaKey || e.ctrlKey) {
|
||||
|
||||
Reference in New Issue
Block a user