remove listen to textarea height change

pull/5127/head
llcc 2022-05-05 10:15:25 +08:00
parent a522364836
commit b8e6be46bf
2 changed files with 1 additions and 8 deletions

View File

@ -524,7 +524,7 @@
(mixins/event-mixin setup-key-listener!)
(shortcut/mixin :shortcut.handler/block-editing-only)
lifecycle/lifecycle
[state {:keys [format block]} id config]
[state {:keys [format block]} id _config]
(let [content (state/sub-edit-content)
heading-class (get-editor-style-class content format)]
[:div.editor-inner {:class (if block "block-editor" "non-block-editor")}
@ -541,7 +541,6 @@
:on-click (editor-handler/editor-on-click! id)
:on-change (editor-handler/editor-on-change! block id search-timeout)
:on-paste (editor-handler/editor-on-paste! id)
:on-height-change (editor-handler/editor-on-height-change! id)
:auto-focus false
:class heading-class})

View File

@ -2793,12 +2793,6 @@
(util/scroll-editor-cursor input)
(close-autocomplete-if-outside input))))
(defn editor-on-height-change!
[id]
(fn [_box-height ^js _row-height]
(let [input (gdom/getElement id)]
(util/scroll-editor-cursor input))))
(defn editor-on-change!
[block id search-timeout]
(fn [e]