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

DataLinks: Fix url field not releasing focus #19804

Merged
merged 3 commits into from
Oct 16, 2019

Conversation

aocenas
Copy link
Member

@aocenas aocenas commented Oct 14, 2019

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

@aocenas aocenas added this to the 6.4.3 milestone Oct 15, 2019
onOptionsChange: (
options: T,
// callback can be used to run something right after update.
callback?: () => void
Copy link
Member

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@dprokop dprokop left a 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.

@aocenas aocenas merged commit 09a5999 into master Oct 16, 2019
@aocenas aocenas deleted the aocenas/fix-data-links-edit branch October 16, 2019 07:57
papagian pushed a commit that referenced this pull request Oct 16, 2019
papagian pushed a commit that referenced this pull request Oct 16, 2019
teodoryantcheff pushed a commit to teodoryantcheff/grafana that referenced this pull request Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants