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?