AllenFang / AllenFang/react-bootstrap-table

Uncaught TypeError: Cannot read property 'value' of undefined

Open
#1,438 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.2k
Forks
761
PR merge metrics
No merged PRs in 30d

Description

A custom `` field in an InsertModal throws an error. How to manage `select`s in the plugin?

A field:
```

Status code

CONFIRMED
NOT_CONFIRMED

```

An error thrown by the plugin:

```
InsertModalBody.js:51 Uncaught TypeError: Cannot read property 'value' of undefined
at InsertModalBody. (InsertModalBody.js:51)
at Array.forEach ()
at InsertModalBody.getFieldValue (InsertModalBody.js:41)
at InsertModal.__handleSave__REACT_HOT_LOADER__ (InsertModal.js:63)
at InsertModal._this.handleSave (InsertModal.js:54)
at InsertModalFooter.__handleSaveBtnClick__REACT_HOT_LOADER__ (InsertModalFooter.js:68)
at InsertModalFooter._this.handleSaveBtnClick (InsertModalFooter.js:46)
at Object.ReactErrorUtils.invokeGuardedCallback (ReactErrorUtils.js:69)
at executeDispatch (EventPluginUtils.js:85)
at Object.executeDispatchesInOrder (EventPluginUtils.js:105)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.