-
Notifications
You must be signed in to change notification settings - Fork 12.2k
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
DataLinks: Fix url field not releasing focus #19804
Conversation
onOptionsChange: ( | ||
options: T, | ||
// callback can be used to run something right after update. | ||
callback?: () => void |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this necessary? I can't see any callback being passed to this prop anywhere in this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's passed here https://github.com/grafana/grafana/pull/19804/files#diff-f715345ae09960ce639d3e8daf07aff6R56 and this is what is passed as onOptionsChange
https://github.com/grafana/grafana/pull/19804/files#diff-6e9276e76a52b87735ffbbb4306fa5a8R168
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM and works as expected. But, I've left one question about callback that i'm not sure i'm following the need for.
(cherry picked from commit 09a5999)
(cherry picked from commit 09a5999)
(cherry picked from commit 09a5999)
When using DataLinks with gauge or single stat, the url field would not release focus so making it impossible to edit anything else afterwards.
Related somewhat to #19799