Skip to content

Customize inputElement not working... #64

Open
@hachi1030-Allen

Description

@hachi1030-Allen

Dear author,

I feel this libray quite cool and I have successfully override the addButtonElement, editButtonElement, etc. with Material UI IconButtons.

Looks very nice, but when I try to customize the inputElement, it's not working for me.

My code is like below:

inputElement={(usage, keyPath, deep, keyName, data, dataType) => (
            <TextField />
          )}

I am using React, and I simply replaced the default to this element.

The UI part is modified as below:
image
But when I input values and click on the add button, nothing happened. Even no error in console log.

But if I change back to the default inputElement, the add button works without any issue. So it's not the addButtonElement issue but the inputElement issue.

Can you help to take a look at this and let me know if I am doing anything wrong?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions