-
Notifications
You must be signed in to change notification settings - Fork 842
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
[EuiCodeEditor] does not work well with EuiFormRow to assign a label #2961
Comments
@myasonik i am working on it and will soon update you |
currently reacct-ace doesn't has an |
In the mean time, can we do a fix similar to what was done in kibana? After render, query the dom for a textarea, then apply an @thompsongl @chandlerprall does that sound like an all right interim solution? (Given that we don't know when/if react-ace will fix their hole and then when/if we'll update after that) |
Taking this a little further, we could support any additional attributes (limited to id + aria stuff, maybe?) with an approach similar to eui/src/components/overlay_mask/overlay_mask.tsx Lines 36 to 43 in 641732b
i.e. have |
@myasonik do i need to apply a post-render update for this? |
Yes, this issue and #2960 should be fixed with the solution @chandlerprall posted above. Make a new object prop called |
EuiCodeEditor
does not work well with EuiFormRow
to assign a label
Working on this would update shortly |
@myasonik this technique has solved the issue, I will make a pr when one of my or gets closed |
When using
EuiCodeEditor
inside ofEuiFormRow
there is no convenient way to assign a an id to thetextarea
.In places Kibana has started to shim this after render but inconsistently and in Kibana probably isn't the best place to do this anyway.
Example of what I mean: editor_example.tsx#L34-L45
I'm not sure what the best solution is here because I know
EuiCodeEditor
has its hands tied byreact-ace
a little. Will probably need to explore if the best solution can be implemented inEuiCodeEditor
or inEuiFormRow
.The text was updated successfully, but these errors were encountered: