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

Accept symbol numbers in string format #5073

Merged
merged 3 commits into from
Aug 14, 2020

Conversation

archmoj
Copy link
Contributor

@archmoj archmoj commented Aug 13, 2020

Fixes #4460 by introducing string variant to be accepted by supply defaults and handling numeric values when passed in by an array | demo.

TODO:

  • write test

@plotly/plotly_js

@archmoj archmoj added bug something broken status: reviewable labels Aug 13, 2020
k + '-dot',
n + 300,
String(n + 300),
Copy link
Collaborator

Choose a reason for hiding this comment

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

OIC this is needed for coerce to work... then we also need strings up above (L222, 224) for the n and n + 100 variants.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call. Done in 5b7b18f.

@alexcjohnson
Copy link
Collaborator

LGTM - just need the test and my one comment.

Copy link
Collaborator

@alexcjohnson alexcjohnson left a comment

Choose a reason for hiding this comment

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

💃 🎉

@archmoj archmoj merged commit 4397170 into master Aug 14, 2020
@archmoj archmoj deleted the fix4460-symbol-numbers-in-string-format branch August 14, 2020 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Handle symbol numbers in string format
2 participants