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

x-ing out Annotation Layer type makes the page blank #11759

Closed
1 of 3 tasks
benceorlai opened this issue Nov 19, 2020 · 5 comments · Fixed by #11787
Closed
1 of 3 tasks

x-ing out Annotation Layer type makes the page blank #11759

benceorlai opened this issue Nov 19, 2020 · 5 comments · Fixed by #11787
Labels
!deprecated-label:bug Deprecated label - Use #bug instead good first issue Good first issues for new contributors

Comments

@benceorlai
Copy link

Expected results

Layer type resets to default

Actual results

The entire page goes blank

Screenshots

image
image
image

How to reproduce the bug

  1. Open a Chart in Explore
  2. Click + Add Annotation Layer
  3. Click on the little x next to Formula in the ANNOTATION LAYER TYPE
  4. See the whole page go blank

Environment

(please complete the following information):

  • superset version: master sha 676e0bb
  • python version:
  • node.js version:

Checklist

Make sure to follow these steps before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • I have reproduced the issue with at least the latest released version of superset.
  • I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context

Add any other context about the problem here.

@benceorlai benceorlai added the !deprecated-label:bug Deprecated label - Use #bug instead label Nov 19, 2020
@junlincc junlincc added the chart label Nov 19, 2020
@junlincc
Copy link
Member

junlincc commented Nov 19, 2020

Expected behavior: user click x to exit annotation modal and go back to explore

we should just kill the xs in the drop down menus as they are really not needed.. appreciate anyone who can throw a quick fix.

@junlincc junlincc added the good first issue Good first issues for new contributors label Nov 19, 2020
@nytai
Copy link
Member

nytai commented Nov 20, 2020

We should also handle the fact that the explore page goes completely blank when there's an error. I think we just need to wrap the explore page in an ErrorBoundary

@benceorlai
Copy link
Author

at the risk of nitpicking, i think the expected behavior of that x is to reset the value of the dropdown to its default, not to close out the popover. the real issue though is the page blankout, which I think is quite serious (although an edge case)

@junlincc
Copy link
Member

i think the expected behavior of that x is to reset the value of the dropdown to its default, not to close out the popover.

closing the modal is what the other Xs do in the same modal currently.

@mistercrunch
Copy link
Member

It's also possible/easy to remove the x by setting the prop clearable: false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
!deprecated-label:bug Deprecated label - Use #bug instead good first issue Good first issues for new contributors
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants