[Ur] <ctextinput source={s} /> looses input focus after every keypress

Adam Chlipala adamc at csail.mit.edu
Mon Apr 3 08:02:16 EDT 2017


Is the control inside a <dyn> whose value is affected by a source that 
every keypress updates? Focus is expected to go away every time a 
dynamic subtree needs to be rebuilt.

On 04/03/2017 06:38 AM, Sergey Mironov wrote:
> Just found a strange issue regarding <ctextinput>. If used with
> source={s} attribute set, the control looses input focus after every
> keypress event. Removing source={s} brings back the correct behavior.
> Is it a known issue?
>
> As a workaround, I tried <ctextinput id={cid} source={s}
> onkeypress={fn _ => giveFocus cid} /> with no improvement.
>
> I'm using urweb-20170105 and firefox(nighty)-49.0



More information about the Ur mailing list