1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-16 10:29:54 +00:00

Tag-picker: focus tag-input after clicking a tag from the dropdown (#4986)

* Tag-picker: focus tag-input after clicking a tag from the dropdown

* Update tag-picker.tid
This commit is contained in:
Simon Huber 2020-11-06 22:16:14 +01:00 committed by GitHub
parent b3d0303139
commit 900a29fbb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,9 @@ $actions$
\define tag-button(actions,selectedClass)
<$button class="tc-btn-invisible $selectedClass$" tag="a" tooltip={{$:/language/EditTemplate/Tags/Add/Button/Hint}}>
<$action-sendmessage $message="tm-add-tag" $param=<<tag>>/>
<$set name="currentTiddlerCSSEscaped" value={{{ [<storyTiddler>escapecss[]] }}}>
<$action-sendmessage $message="tm-focus-selector" $param=<<get-tagpicker-focus-selector>> preventScroll="true"/>
</$set>
<<delete-tag-state-tiddlers>>
$actions$
<$macrocall $name="tag-pill" tag=<<tag>>/>