mirror of
https://github.com/penpot/penpot.git
synced 2025-01-08 16:00:19 -05:00
🐛 Fix create empty comments
This commit is contained in:
parent
a1b90a8569
commit
477dc6315e
2 changed files with 9 additions and 7 deletions
|
@ -91,6 +91,7 @@
|
|||
- Fix onboarding slides height [Taiga #5373](https://tree.taiga.io/project/penpot/issue/5373)
|
||||
- Fix create typography with section closed [Taiga #5574](https://tree.taiga.io/project/penpot/issue/5574)
|
||||
- Fix exports menu on viewer mode [Taiga #5568](https://tree.taiga.io/project/penpot/issue/5568)
|
||||
- Fix create empty comments [Taiga #5536](https://tree.taiga.io/project/penpot/issue/5536)
|
||||
|
||||
### :arrow_up: Deps updates
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
[app.main.refs :as refs]
|
||||
[app.main.store :as st]
|
||||
[app.main.ui.components.dropdown :refer [dropdown]]
|
||||
[app.main.ui.components.forms :as fm]
|
||||
[app.main.ui.icons :as i]
|
||||
[app.util.dom :as dom]
|
||||
[app.util.i18n :as i18n :refer [tr]]
|
||||
|
@ -66,8 +67,7 @@
|
|||
(let [target (dom/get-target event)]
|
||||
(dom/select-text! target)
|
||||
;; In webkit browsers the mouseup event will be called after the on-focus causing and unselect
|
||||
(.addEventListener target "mouseup" dom/prevent-default #js {:once true})))))
|
||||
]
|
||||
(.addEventListener target "mouseup" dom/prevent-default #js {:once true})))))]
|
||||
|
||||
|
||||
|
||||
|
@ -129,7 +129,8 @@
|
|||
{:type "button"
|
||||
:value "Post"
|
||||
:on-click on-submit
|
||||
:disabled (str/empty-or-nil? @content)}]
|
||||
:disabled (or (fm/all-spaces? @content)
|
||||
(str/empty-or-nil? @content))}]
|
||||
[:input.btn-secondary
|
||||
{:type "button"
|
||||
:value "Cancel"
|
||||
|
@ -186,7 +187,8 @@
|
|||
{:on-click on-submit
|
||||
:type "button"
|
||||
:value "Post"
|
||||
:disabled (str/empty-or-nil? content)}]
|
||||
:disabled (or (fm/all-spaces? content)
|
||||
(str/empty-or-nil? content))}]
|
||||
[:input.btn-secondary
|
||||
{:on-click on-esc
|
||||
:type "button"
|
||||
|
@ -203,8 +205,7 @@
|
|||
on-submit*
|
||||
(mf/use-fn
|
||||
(mf/deps @content)
|
||||
(fn [] (on-submit @content)))
|
||||
]
|
||||
(fn [] (on-submit @content)))]
|
||||
|
||||
|
||||
[:div.reply-form.edit-form
|
||||
|
|
Loading…
Reference in a new issue