Repository: incubator-weex Updated Branches: refs/heads/0.16-dev c606a33c1 -> ad34141bc
* [html5] bugfix: toasts don't hide in some android browsers. Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/15bfb7e1 Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/15bfb7e1 Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/15bfb7e1 Branch: refs/heads/0.16-dev Commit: 15bfb7e1510e108f780707db369c9304866bb5fb Parents: c45b53c Author: MrRaindrop <tekk...@gmail.com> Authored: Thu Aug 3 15:54:02 2017 +0800 Committer: MrRaindrop <tekk...@gmail.com> Committed: Thu Aug 3 15:54:02 2017 +0800 ---------------------------------------------------------------------- html5/render/vue/modules/modal/toast.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/15bfb7e1/html5/render/vue/modules/modal/toast.js ---------------------------------------------------------------------- diff --git a/html5/render/vue/modules/modal/toast.js b/html5/render/vue/modules/modal/toast.js index aef405a..d8e310a 100644 --- a/html5/render/vue/modules/modal/toast.js +++ b/html5/render/vue/modules/modal/toast.js @@ -40,7 +40,7 @@ function showToastWindow (msg, callback) { toastWin.addEventListener('webkitTransitionEnd', handleTransitionEnd) setTimeout(function () { toastWin.classList.remove('hide') - }, 0) + }, 16) } function hideToastWindow (callback) { @@ -56,7 +56,7 @@ function hideToastWindow (callback) { toastWin.addEventListener('webkitTransitionEnd', handleTransitionEnd) setTimeout(function () { toastWin.classList.add('hide') - }, 0) + }, 16) } export default {