Cursor is moved to command box instead of parameter box if edit phone from profile [ui-refresh] (#998)
This commit is contained in:
parent
10cce42403
commit
4633a23c17
|
@ -84,7 +84,7 @@
|
||||||
:text-align-vertical :center
|
:text-align-vertical :center
|
||||||
:height min-input-height
|
:height min-input-height
|
||||||
:align-items :center
|
:align-items :center
|
||||||
:android {:left (+ 15 left)
|
:android {:left (+ 10 left)
|
||||||
:top 0.5}
|
:top 0.5}
|
||||||
:ios {:line-height min-input-height
|
:ios {:line-height min-input-height
|
||||||
:left (+ 9 left)}})
|
:left (+ 9 left)}})
|
||||||
|
|
|
@ -79,8 +79,8 @@
|
||||||
(set-layout-height h))
|
(set-layout-height h))
|
||||||
:on-selection-change #(let [s (-> (.-nativeEvent %)
|
:on-selection-change #(let [s (-> (.-nativeEvent %)
|
||||||
(.-selection))]
|
(.-selection))]
|
||||||
(when (and (= (.-end s) 10)
|
(when (and (= (.-end s) (+ 2 (count (get-in @command [:command :name]))))
|
||||||
(get command [:command :sequential-params]))
|
(get-in @command [:command :sequential-params]))
|
||||||
(dispatch [:chat-input-focus :seq-input-ref])))
|
(dispatch [:chat-input-focus :seq-input-ref])))
|
||||||
:on-submit-editing #(dispatch [:send-current-message])
|
:on-submit-editing #(dispatch [:send-current-message])
|
||||||
:on-focus #(do (dispatch [:set-chat-ui-props :input-focused? true])
|
:on-focus #(do (dispatch [:set-chat-ui-props :input-focused? true])
|
||||||
|
|
Loading…
Reference in New Issue