Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeleteWithConfirmButton not working #3877

Closed
bullheadandplato opened this issue Oct 25, 2019 · 1 comment
Closed

DeleteWithConfirmButton not working #3877

bullheadandplato opened this issue Oct 25, 2019 · 1 comment

Comments

@bullheadandplato
Copy link

What you were expecting:
delete call should be placed.

What happened instead:
Uncaught TypeError: Cannot read property 'stopPropagation' of undefined

Steps to reproduce:

Related code:

export const ListCustomer = props => (
    <List {...props} hasCreate bulkActionButtons={false}>
        <Datagrid>
            <TextField source="id"/>
            <EditButton/>
            <DeleteWithConfirmButton/>
        </Datagrid>
    </List>
);

Other information:
I see exact issue was referenced #2989
Environment

  • React-admin version: 3.0.0-beta3
  • Last version that did not exhibit the issue (if applicable): 2.9.8
  • React version: 16.9.0
  • Browser: Chromium
  • Stack trace (in case of a JS error):
Uncaught TypeError: Cannot read property 'stopPropagation' of undefined
    at DeleteWithConfirmButton.js:124
    at Confirm.js:89
    at HTMLUnknownElement.callCallback (react-dom.development.js:363)
    at Object.invokeGuardedCallbackDev (react-dom.development.js:412)
    at invokeGuardedCallback (react-dom.development.js:465)
    at invokeGuardedCallbackAndCatchFirstError (react-dom.development.js:480)
    at executeDispatch (react-dom.development.js:613)
    at executeDispatchesInOrder (react-dom.development.js:635)
    at executeDispatchesAndRelease (react-dom.development.js:743)
    at executeDispatchesAndReleaseTopLevel (react-dom.development.js:752)
    at forEachAccumulated (react-dom.development.js:724)
    at runEventsInBatch (react-dom.development.js:769)
    at runExtractedPluginEventsInBatch (react-dom.development.js:915)
    at handleTopLevel (react-dom.development.js:5866)
    at batchedEventUpdates$1 (react-dom.development.js:24311)
    at batchedEventUpdates (react-dom.development.js:1460)
    at dispatchEventForPluginEventSystem (react-dom.development.js:5966)
    at attemptToDispatchEvent (react-dom.development.js:6083)
    at dispatchEvent (react-dom.development.js:5986)
    at unstable_runWithPriority (scheduler.development.js:818)
    at runWithPriority$2 (react-dom.development.js:12259)
    at discreteUpdates$1 (react-dom.development.js:24328)
    at discreteUpdates (react-dom.development.js:1485)
    at dispatchDiscreteEvent (react-dom.development.js:5949)
(anonymous) @ DeleteWithConfirmButton.js:124
(anonymous) @ Confirm.js:89
callCallback @ react-dom.development.js:363
invokeGuardedCallbackDev @ react-dom.development.js:412
invokeGuardedCallback @ react-dom.development.js:465
invokeGuardedCallbackAndCatchFirstError @ react-dom.development.js:480
executeDispatch @ react-dom.development.js:613
executeDispatchesInOrder @ react-dom.development.js:635
executeDispatchesAndRelease @ react-dom.development.js:743
executeDispatchesAndReleaseTopLevel @ react-dom.development.js:752
forEachAccumulated @ react-dom.development.js:724
runEventsInBatch @ react-dom.development.js:769
runExtractedPluginEventsInBatch @ react-dom.development.js:915
handleTopLevel @ react-dom.development.js:5866
batchedEventUpdates$1 @ react-dom.development.js:24311
batchedEventUpdates @ react-dom.development.js:1460
dispatchEventForPluginEventSystem @ react-dom.development.js:5966
attemptToDispatchEvent @ react-dom.development.js:6083
dispatchEvent @ react-dom.development.js:5986
unstable_runWithPriority @ scheduler.development.js:818
runWithPriority$2 @ react-dom.development.js:12259
discreteUpdates$1 @ react-dom.development.js:24328
discreteUpdates @ react-dom.development.js:1485
dispatchDiscreteEvent @ react-dom.development.js:5949
@djhi
Copy link
Collaborator

djhi commented Oct 25, 2019

Thanks! Duplicate of #3873

@djhi djhi closed this as completed Oct 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants