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

Center flexible length text & clear manualCaptureInput on open #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ben-caplan
Copy link

@ben-caplan ben-caplan commented Jun 19, 2020

This PR carries two enhancements:

  1. Horizontally center the new flexible length text within the view. Please note, this does not account for text that is so long it would wrap onto a second line.
  2. Clear manualCaptureInput value when manual capture is initiated. The file upload path only fires when the manualCaptureInput value changes (manualCaptureInput.onchange). There are times when a user may want to try to upload the same image more than once, this enhancement allows for that.

Please note: The code base does not make it clear how the code is minified, so we were not able to update the minified file as well. If these updates are approved, we will need the minification to be run as well.

One other suggestion (that is not related to this PR): It seems that the code is either not being transpiled or is not being transpiled to support that broad of an audience. It seem like the use of arrow functions (=>) is causing some browsers to throw irrecoverable errors. Would it be possible to add a fix for this (if we had access to your build pipeline/tooling we could help contribute here as well).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant