Hi Tobias

This is actually related to the conditional in the edit widget that we 
discussed a few weeks ago.

The issue is that when the button is clicked the text edit has the focus, thus 
the conditional kicks in and prevents the update.

You’ll recall that the purpose of the conditional was to prevent the 
cursor/selection position being lost when the value for the text input is 
updated. So the fix would be to manually preserve the selection position across 
the update.

Best wishes

Jeremy


> On 8 Jan 2017, at 14:48, Tobias Beer <[email protected]> wrote:
> 
> Hi again,
>  
> So the question is. Why does the edit-text widget not realize
> that its tiddler is gone or the text of it deleted and thus not refresh 
> accordingly?
> 
> I believe this is owed to a shortcomming in refresh handling:
> 
> The edit-text widget refreshes first. At that point, the keyboard widget 
> hasn't changed anything about its value.
> 
> Now the keyboard widget fires and does it's thing. However, the refresh cycle 
> is oddly done in a way that the edit-text widget does not check again if it 
> needs refreshing and so it just sits there, waiting for the next input.
> 
> So, the question is: how to modify the refresh handling, so that affected 
> elements know they need to double check, since one of the things they were 
> watching changed before the refresh cycle changed.
> 
> I am a bit astonished, that this problem of "sequence of events" wouldn't be 
> handled by the core already so that another refresh cycle would kick-in, 
> since the last one modified the store... or some such.
> 
> Best wishes,
> 
> Tobias.
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/tiddlywiki 
> <https://groups.google.com/group/tiddlywiki>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/ac977126-7033-44af-b724-03bab9c34605%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/ac977126-7033-44af-b724-03bab9c34605%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/1A803E1A-03F3-4063-BC1A-FC06D64ED7DF%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to