Browse Source

fix: add aria label to textarea

Konstantinos Kaloutas 3 years ago
parent
commit
5ff79cbba0
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/main/frontend/ui.cljs

+ 2 - 0
src/main/frontend/ui.cljs

@@ -52,6 +52,8 @@
   < rum/reactive
   {:did-mount (fn [state]
                 (let [^js el (rum/dom-node state)]
+                  ;; Passing aria-label as a prop to TextareaAutosize removes the dash
+                  (.setAttribute el "aria-label" "editing block")
                   (. el addEventListener "mouseup"
                      #(let [start (util/get-selection-start el)
                             end (util/get-selection-end el)]