Project

General

Profile

Bug #1954

CrudView not working properly when set as modal

Added by Maurício Dos Santos almost 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
08/01/2016
Due date:
% Done:

0%

Complexity:

Description

When CRUDView is set as modal (its form will be shown in a modal), we got an error.

Example:

                <CrudView modal combine
                    title={__('cases.contacts')}
                    editorSchema={this.state.editorSchema}
                    crud={crud}
                    onCellRender={this.cellRender}
                    />

If modal is removed the error stops appearring in console.

The following is shown on console:

app.js:42793 Uncaught (in promise) TypeError: Cannot read property 'style' of null(…)handleEnter @ app.js:42793performEnter @ app.js:43222componentDidUpdate @ app.js:43197invokeComponentDidUpdateWithTimer @ app.js:31537notifyAll @ app.js:23731close @ app.js:34500closeAll @ app.js:24943perform @ app.js:24890perform @ app.js:24877perform @ app.js:23497flushBatchedUpdates @ app.js:23580closeAll @ app.js:24943perform @ app.js:24890batchedUpdates @ app.js:34074enqueueUpdate @ app.js:23608enqueueUpdate @ app.js:33045enqueueForceUpdate @ app.js:33178ReactComponent.forceUpdate @ app.js:17960(anonymous function) @ 3.app.js:18098

It happens when trying to open the form (click on new or edit button)

History

#1 Updated by Maurício Dos Santos almost 9 years ago

  • Status changed from New to In Progress

#2 Updated by Maurício Dos Santos almost 9 years ago

  • Assignee set to Ricardo Memoria

#3 Updated by Maurício Dos Santos almost 9 years ago

  • Status changed from In Progress to Resolved

#4 Updated by Ricardo Memoria almost 9 years ago

  • Status changed from Resolved to Closed

Fixed...

... Problem in slide down animation, that happens when it is a Card panel, but must be disabled when it is a modal.

Also available in: Atom PDF