From 497b334d60d8d98129268e2219f217e70e58e76e Mon Sep 17 00:00:00 2001 From: Simon Huber Date: Fri, 13 Nov 2020 19:50:50 +0100 Subject: [PATCH] Change tag-picker behavior when there is user-input ... (#5032) ... in the search field --- core/wiki/macros/tag-picker.tid | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/wiki/macros/tag-picker.tid b/core/wiki/macros/tag-picker.tid index 43bcf96d7..befd1efbf 100644 --- a/core/wiki/macros/tag-picker.tid +++ b/core/wiki/macros/tag-picker.tid @@ -16,7 +16,7 @@ second-search-filter: [tags[]is[system]search:titlesort[]] $actions$ -<> +<$action-deletetiddler $tiddler=<>/><$action-setfield $tiddler=<> text={{{ [get[text]] }}}/> <$action-setfield $tiddler=<> text="yes"/> \end @@ -26,7 +26,8 @@ $actions$ <$set name="currentTiddlerCSSEscaped" value={{{ [escapecss[]] }}}> <$action-sendmessage $message="tm-focus-selector" $param=<> preventScroll="true"/> -<> +<$action-deletetiddler $tiddler=<>/><$action-setfield $tiddler=<> text={{{ [get[text]] }}}/> +<$action-setfield $tiddler=<> text="yes"/> $actions$ <$macrocall $name="tag-pill" tag=<>/> @@ -58,7 +59,7 @@ $actions$ focusPopup=<> class="tc-edit-texteditor tc-popup-handle" tabindex=<> focus={{{ [{$:/config/AutoFocus}match[tags]then[true]] ~[[false]] }}} filterMinLength={{$:/config/Tags/MinLength}} cancelPopups=<> configTiddlerFilter="[[$:/core/macros/tag-picker]]"/> -<$button popup=<> class="tc-btn-invisible tc-btn-dropdown" tooltip={{$:/language/EditTemplate/Tags/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Tags/Dropdown/Caption}}>{{$:/core/images/down-arrow}} +<$button popup=<> class="tc-btn-invisible tc-btn-dropdown" tooltip={{$:/language/EditTemplate/Tags/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Tags/Dropdown/Caption}}>{{$:/core/images/down-arrow}}<$reveal state=<> type="nomatch" text=""><$button class="tc-btn-invisible tc-small-gap tc-btn-dropdown">{{$:/core/images/close-button}}<> <$set name="tag" value={{{ [get[text]] }}}> <$button set=<> setTo="" class=""> <$action-sendmessage $message="tm-add-tag" $param=<>/>