-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[CodeEditor] Potential bugs due to stale onChange
callback
#175684
Labels
bug
Fixes for quality problems that affect the customer experience
Team:SharedUX
Team label for AppEx-SharedUX (formerly Global Experience)
Comments
Pinging @elastic/appex-sharedux (Team:SharedUX) |
fkanout
pushed a commit
to fkanout/kibana
that referenced
this issue
Feb 7, 2024
) ## Summary fix elastic#175684 Refer to the issue elastic#175684 for the problem and reproduction I tested that this fixes the issue using the story from the reproduction elastic#175670 and the URL drilldown's placeholder issue explained in elastic#175684
CoenWarmer
pushed a commit
to CoenWarmer/kibana
that referenced
this issue
Feb 15, 2024
) ## Summary fix elastic#175684 Refer to the issue elastic#175684 for the problem and reproduction I tested that this fixes the issue using the story from the reproduction elastic#175670 and the URL drilldown's placeholder issue explained in elastic#175684
fkanout
pushed a commit
to fkanout/kibana
that referenced
this issue
Mar 4, 2024
) ## Summary fix elastic#175684 Refer to the issue elastic#175684 for the problem and reproduction I tested that this fixes the issue using the story from the reproduction elastic#175670 and the URL drilldown's placeholder issue explained in elastic#175684
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Fixes for quality problems that affect the customer experience
Team:SharedUX
Team label for AppEx-SharedUX (formerly Global Experience)
Kibana version: main
Describe the bug:
After an upgrade of dependencies code editor dependencies #171720 we noticed an issue with
onChange
callback where it always has the stale closure (only initial values)You can see the reproduction in the story in this PR #175670
This is likely the same problem that is reported here react-monaco-editor/react-monaco-editor#704
Potentially, a bunch of user-facing bugs could be caused by this where
CodeEditor
is used. For example, I found a bug with URL template editor where placeholder is not shown when you empty the editor:placeholder doesn't work:
placeholder.works.mov
placeholder works:
no.placeholder.mov
Any additional context:
CodeEditor
componentThe text was updated successfully, but these errors were encountered: