diff --git a/src/action-sheet/index.tsx b/src/action-sheet/index.tsx index 590bd90b3..d0cf40f47 100644 --- a/src/action-sheet/index.tsx +++ b/src/action-sheet/index.tsx @@ -1,3 +1,5 @@ +import Vue from 'vue'; + // Utils import { createNamespace } from '../utils'; import { emit, inherit } from '../utils/functional'; @@ -89,11 +91,13 @@ function ActionSheet( callback(item); } - emit(ctx, 'select', item, index); - if (props.closeOnClickAction) { emit(ctx, 'input', false); } + + Vue.nextTick(() => { + emit(ctx, 'select', item, index); + }); } function OptionContent() { diff --git a/src/action-sheet/test/__snapshots__/index.spec.js.snap b/src/action-sheet/test/__snapshots__/index.spec.js.snap index 932b1a226..2764b2d66 100644 --- a/src/action-sheet/test/__snapshots__/index.spec.js.snap +++ b/src/action-sheet/test/__snapshots__/index.spec.js.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`callback events 1`] = ` -