As we well know, when $edit-text targets the current tiddler and you start
typing, the input control loses focus with each keystroke.
But... I just did an experiment with some very curious results...
Enter the following into a tiddler:
<$tiddler tiddler="target">
TEST1: <$edit-text tag="input" default=""/>
</$tiddler>
<$list filter="[[target]]">
TEST2: <$edit-text tag="input" default=""/>
</$list>
<$list filter="[[target]is[missing]]">
<$link/> DOES NOT EXIST
</$list>
<$list filter="[[target]is[tiddler]]">
<$link/> EXISTS
<$button>delete target <$action-deletetiddler
$tiddler=<<currentTiddler>>/></$button>
</$list>
target tiddler contents:
<pre>{{target}}</pre>
Note that TEST1 uses $tiddler to set the currentTiddler value, while the
TEST2 uses $list to do the same thing. The difference in behavior is that,
when the target tiddler is missing, TEST1 creates the tiddler and *loses
focus on first keystroke*, but TEST2 creates the tiddler and *keeps focus
on first keystroke*. Note that once the tiddler exists, you can type into
either input control and neither one loses focus.
Can anyone explain what is happening?
--
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/a3863bd1-9912-47a1-8e87-3582cf1886ebn%40googlegroups.com.