-
Notifications
You must be signed in to change notification settings - Fork 4
Description
When i add it in an react app
import ExpressionBuilder from 'react-expression-builder';
const ebOptions = [ { value: 'SPLIT (dim, delimiter, occurrence_number)', label: 'SPLIT', type: 'function' }, { value: 'CONCAT (dim1, dim2)', label: 'CONCAT', key: 'concat' }, { value: 'SUB (dim, starting_at, ending_at)', label: 'SUB', key: 'sub' } ]; // Optional - Function called on every state change, store your changes on the server const ebOnChangeFn = editorState => console.log(editorState, editorState.buildExpression())
<ExpressionBuilder onChangeFn={ebOnChangeFn} options={ebOptions} placeholder="Enter your expression" // Optional />
When page loaded, i got this issue
TypeError: e.key is undefined
ue/</<
/node_modules/react-expression-builder/dist/main.js:9