🐛 Add ellipsis in long labels for input fields

This commit is contained in:
alonso.torres 2021-11-03 12:36:12 +01:00 committed by Andrés Moya
parent 50d756b189
commit 503f0bee69
15 changed files with 100 additions and 29 deletions

View file

@ -24,6 +24,7 @@
max-val-str (obj/get props "max")
wrap-value? (obj/get props "data-wrap")
on-change (obj/get props "onChange")
title (obj/get props "title")
;; We need a ref pointing to the input dom element, but the user
;; of this component may provide one (that is forwarded here).
@ -144,6 +145,7 @@
(obj/set! "type" "text")
(obj/set! "ref" ref)
(obj/set! "defaultValue" value-str)
(obj/set! "title" title)
(obj/set! "onWheel" handle-mouse-wheel)
(obj/set! "onKeyDown" handle-key-down)
(obj/set! "onBlur" handle-blur))]