mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-05 05:18:34 +08:00
chore: 先重新恢复 e.persisit (#4146)
This commit is contained in:
parent
34be2b0d8a
commit
2bb94e8e15
@ -614,7 +614,7 @@ export class Action extends React.Component<ActionProps, ActionState> {
|
|||||||
const {onAction, disabled, countDown, env} = this.props;
|
const {onAction, disabled, countDown, env} = this.props;
|
||||||
|
|
||||||
// https://reactjs.org/docs/legacy-event-pooling.html
|
// https://reactjs.org/docs/legacy-event-pooling.html
|
||||||
// e.persist(); // react 17之后去掉 event pooling 了,这个应该没用了
|
e.persist();
|
||||||
let onClick = this.props.onClick;
|
let onClick = this.props.onClick;
|
||||||
|
|
||||||
if (typeof onClick === 'string') {
|
if (typeof onClick === 'string') {
|
||||||
|
@ -13,7 +13,7 @@ export default function handleAction(
|
|||||||
data?: any
|
data?: any
|
||||||
) {
|
) {
|
||||||
// https://reactjs.org/docs/legacy-event-pooling.html
|
// https://reactjs.org/docs/legacy-event-pooling.html
|
||||||
// e.persist(); // react 17之后去掉 event pooling 了,这个应该没用了
|
e.persist();
|
||||||
|
|
||||||
const onAction = props.onAction;
|
const onAction = props.onAction;
|
||||||
let onClick: any = action.onClick;
|
let onClick: any = action.onClick;
|
||||||
|
Loading…
Reference in New Issue
Block a user