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

[EuiInlineEdit] Create value prop for full control over inline edit text and title values #7084

Closed
breehall opened this issue Aug 15, 2023 · 0 comments · Fixed by #7157
Closed
Assignees

Comments

@breehall
Copy link
Contributor

Is your feature request related to a problem? Please describe.
EuiInlineEdit is currently a self-contained component that allows consumers to set a defaultValue, but currently no way to update or control that value without un-mounting and remounting the component. The editMode value within the text form control can be manipulated with editModeProps, but the readModeValue that appears in the empty button cannot be modified at all.

Describe the solution you'd like
Create an optional value prop that accepts a string. When the value prop is passed, it will take precedence over the inline edit internal readMode value and any placeholder passed to the component. It should also be passed as the starting value for the editMode form control.

const readModeElement = (

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant