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

Trimming sendBoxValue on enter key submit: issue 2328 #2330

Closed
wants to merge 1 commit into from

Conversation

jimmyjames177414
Copy link
Contributor

@jimmyjames177414 jimmyjames177414 commented Aug 16, 2019

Bug fix for "Sending questions with trailing spaces using enter fails to trim(). - fix included #2328"
#2328

Fixes #2328

Changelog Entry

Description

Added .trim() to submissions or questions via the enter key

file: BotFramework-WebChat/packages/component/src/SendBox/TextBox.js
Line 34 needs to be added to the red if condition shown below:
image

Bug fix for "Sending questions with trailing spaces using enter fails to trim(). - fix included microsoft#2328"
microsoft#2328
@coveralls
Copy link

Coverage Status

Coverage increased (+0.008%) to 66.122% when pulling 9c70ab2 on jimmyjames177414:patch-1 into 007d5dc on microsoft:master.

@jimmyjames177414 jimmyjames177414 changed the title Bug fix for issue 2328 Trimming sendBoxValue on enter key submit: issue 2328 Aug 16, 2019
@jimmyjames177414
Copy link
Contributor Author

incorrect assumption

jimmyjames177414 added a commit to jimmyjames177414/BotFramework-WebChat that referenced this pull request Aug 16, 2019
Suggested fix by tdurnford for issue microsoft#2330
Trimming sendBoxValue on enter key submit
tdurnford pushed a commit that referenced this pull request Aug 21, 2019
* Updating submitSendBoxSaga.js

Suggested fix by tdurnford for issue #2330
Trimming sendBoxValue on enter key submit

* Updating CHANGELOG.md

* Updating CHANGELOG.md

Removing incorrect reference to minor patch in the CHANGELOG.md

* Removing redundancy in SendButton.js

Removing setSendBox(sendBoxValue.trim()) from SendButton.js

* Removing redundancy in TextBox.js

Removing setSendBox(sendBoxValue.trim()) from TextBox.js

* Refactoring SendButton.js

Implementing @tdurnford's refactoring request for SendButton.js:
-Removing setSendBox and sendBoxValue from function declaration since it is no longer used.
-Since we are only making one function call in the click method, we are removing it and passing submitSendBox to the button's onClick handler.

* Correcting Lint errors in SendButton.js

Correcting Lint errors in SendButton.js
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.

Sending questions with trailing spaces using enter fails to trim(). - fix included
2 participants