Hello,

I'm experiencing a behavior that I can not understand. I'm trying to use a 
drop-down to give the user a list of values to choose from while he is 
typing. Everything seems correct to me, and when the edit field gains the 
focus the popup is opened, but in the same second it is closed. I can't 
understand why. It is even more "weird" if I make another edit field to 
trigger the same popup: it works as expected. The only difference between 
both fields is that one is placed before the transclusion of the popup 
tiddler and the other is placed after. So the order matters


Here is the code with both fields:


<$linkcatcher to="$:/state/searchNreplace/search">
<$edit-text tiddler="$:/state/searchNreplace/search" tag="input" default="" 
placeholder="search" focusPopup="$:/state/regexDropDown"/>
<$transclude tiddler="$:/text-tools/ui/regex-dropdown" mode="inline"/>
<$edit-text tiddler="$:/state/searchNreplace/replace" tag="input" 
default="" placeholder="replace" focusPopup="$:/state/regexDropDown"/>
</$linkcatcher>


And here is the transcluded tiddler body:

<div class="tc-block-dropdown-wrapper">
<$reveal state="$:/state/regexDropDown" type="nomatch" text="" default="">
<div class="tc-block-dropdown tc-edit-type-dropdown">
<$list filter="[all[shadows+tiddlers]tag[$:/tags/regexp]]"><$link 
to={{!!regexp}}><$transclude field="description"/></$link>
</$list>
</div>
</$reveal>
</div>


Why?

thanks in advance.

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b5920853-c61b-4070-8c35-d0b74abc8bdf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to