mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-03 12:29:24 +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;
|
||||
|
||||
// https://reactjs.org/docs/legacy-event-pooling.html
|
||||
// e.persist(); // react 17之后去掉 event pooling 了,这个应该没用了
|
||||
e.persist();
|
||||
let onClick = this.props.onClick;
|
||||
|
||||
if (typeof onClick === 'string') {
|
||||
|
@ -13,7 +13,7 @@ export default function handleAction(
|
||||
data?: any
|
||||
) {
|
||||
// https://reactjs.org/docs/legacy-event-pooling.html
|
||||
// e.persist(); // react 17之后去掉 event pooling 了,这个应该没用了
|
||||
e.persist();
|
||||
|
||||
const onAction = props.onAction;
|
||||
let onClick: any = action.onClick;
|
||||
|
Loading…
Reference in New Issue
Block a user