We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67d4dfb commit 61b82ccCopy full SHA for 61b82cc
render/render.js
@@ -810,7 +810,15 @@ module.exports = function() {
810
var result
811
if (typeof handler === "function") result = handler.call(ev.currentTarget, ev)
812
else if (typeof handler.handleEvent === "function") handler.handleEvent(ev)
813
- if (this._ && ev.redraw !== false) (0, this._)()
+ var eventRedraw = this._
814
+ if (eventRedraw && ev.redraw !== false) {
815
+ eventRedraw()
816
+ if (result != null && typeof result.then === "function") {
817
+ Promise.resolve(result).finally(function () {
818
+ if (ev.redraw !== false) eventRedraw()
819
+ })
820
+ }
821
822
if (result === false) {
823
ev.preventDefault()
824
ev.stopPropagation()
0 commit comments