]> cat aescling's git repositories - mastodon.git/commit
Rerender modal on property changes (#4175)
authorunarist <m.unarist@gmail.com>
Wed, 12 Jul 2017 18:51:44 +0000 (03:51 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Wed, 12 Jul 2017 18:51:44 +0000 (20:51 +0200)
commit5abb3d815025675d1493da4f8c6e4dda4a6672e9
tree239fa7e5164048f3534d199e293d93219968386f
parentc45a75ad3419f15d639138ac34c320323367c870
Rerender modal on property changes (#4175)

Render function for BundleContainer must not be methods.
React doesn't know dependency of the method, so they won't rerender on property updates.

In this case, when you close modal and open another modal immediately,
old modal will be open instead of new one.
app/javascript/mastodon/features/ui/components/modal_root.js