Ok, we all know not to use the edit widget to edit the tiddler you're in.
But if I make a tiddler with this content:
<$vars searchTiddler=<<qualify search>>>
<$vars searchTerms={{{[<searchTiddler>get[text]]}}}>
{{||TagTemplateSearchBox}}
</$vars>
</$vars>
where TagTemplateSearchBox is defined like this:
\whitespace trim
<div class="tc-sidebar-lists tc-sidebar-search">
<div class="tc-search">
<$edit-text tiddler=<<searchTiddler>> type="search" tag="input" focus={{$:/config/Search/AutoFocus}} class="tc-popup-handle"/>
</div>
<$reveal tag="div" class="tc-block-dropdown-wrapper" state=<<searchTiddler>> type="nomatch" text="">
<$list filter="[<searchTerms>minlength{$:/config/Search/MinLength}limit[1]]" emptyMessage="""<div class="tc-search-results">{{$:/language/Search/Search/TooShort}}</div>""" variable="listItem">
</$list>
</$reveal>
</div>
then I have the SAME render/loss-of-focus issues I get as if I had tried to edit the current tiddler.
My simple goal is to have a search box that I can use in multiple tiddlers without having to share a common tiddler. When I hard-code the temp tiddler, then it works fine.
Thanks!