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!
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/5783e59a-5889-47e6-9391-201487d836adn%40googlegroups.com.