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

Bulk import when comma + space separation #88

Closed
NateBaldwinDesign opened this issue Aug 12, 2020 · 0 comments · Fixed by #89
Closed

Bulk import when comma + space separation #88

NateBaldwinDesign opened this issue Aug 12, 2020 · 0 comments · Fixed by #89
Labels
bug Something isn't working UI Issues related to the Leonardo web interface

Comments

@NateBaldwinDesign
Copy link
Collaborator

Description

When importing bulk colors with a comma and space delimitation, the last color in the array is given an extra space before the color value.

This input into the bulk import:
ff00ff, ff0000, 0000ff

will assign # to all colors, and the final color will output as:
# 0000ff

This breaks the function and returns only the valid colors into the input.

Steps to reproduce

  1. Go to http://localhost:1234/
  2. Click on bulk import and add "ff00ff, ff0000, 0000ff"
  3. Observe #ff00ff and #ff0000 are added to the UI, the final color is not, and the dialog remains open

Expected behavior

All colors import and dialog dismissed

Screenshots

Environment

  • Browser(s) and OS(s):

Additional context

@NateBaldwinDesign NateBaldwinDesign added bug Something isn't working UI Issues related to the Leonardo web interface labels Aug 12, 2020
@NateBaldwinDesign NateBaldwinDesign mentioned this issue Aug 12, 2020
Merged
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working UI Issues related to the Leonardo web interface
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant