[Ur] Change breaks backward compatibility: default event propagation in GUI handlers

Vladimir Shabanov vshabanoff at gmail.com
Wed May 13 07:37:42 EDT 2015


Little note. 'return false' prevents default event handler (e.g., opening
link when clicking on link, or selecting radio button when clicking on it)
not the event propagation/bubbling. So [preventDefault] should be called
instead of 'return false' not the [stopPropagation].

2015-05-13 13:45 GMT+03:00 Adam Chlipala <adamc at csail.mit.edu>:

>  Following some discussion on this list of a proposed patch, I've changed
> the interpretation of client-side GUI event handlers.  They no longer by
> default block propagation of handled events to parent GUI elements.
> Instead, code should call [stopPropagation] explicitly to get that behavior.
>
> I've pushed this change to the public Ur/Web Mercurial repo.  I'll hold
> off on making a new release with the change for at least a week, because *the
> change breaks backward compatibility for Ur/Web apps using client-side GUIs*.
> If you have such an app, please check that it still functions as expected.
> Some source-code changes may be required to work with the new Ur/Web, which
> should go out as a formal release (possibly with other changes in the mean
> time) in the next few weeks.
>
> _______________________________________________
> Ur mailing list
> Ur at impredicative.com
> http://www.impredicative.com/cgi-bin/mailman/listinfo/ur
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.impredicative.com/pipermail/ur/attachments/20150513/b2fc1527/attachment.html>


More information about the Ur mailing list