Skip to content

Commit

Permalink
Remove 'afterExecute' from onClick action
Browse files Browse the repository at this point in the history
  • Loading branch information
LazyLahtak committed Mar 11, 2020
1 parent 8a05c0c commit 79df3a1
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions js/renovation/dist/button.j.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,7 @@ import { getPublicElement } from '../../core/utils/dom';
const TEMPLATE_WRAPPER_CLASS = 'dx-template-wrapper';

const actions = {
onClick: {
excludeValidators: ['readOnly'],
afterExecute: function() {
const { useSubmitBehavior } = this.option();

useSubmitBehavior && setTimeout(() => this._submitInput().click());
} },
onClick: { excludeValidators: ['readOnly'] },
onContentReady: { excludeValidators: ['disabled', 'readOnly'] },
};

Expand Down

0 comments on commit 79df3a1

Please sign in to comment.