Skip to content

Conversation

@murtaza98
Copy link
Contributor

@murtaza98 murtaza98 commented Dec 17, 2021

Proposed changes (including videos or screenshots)

Right now, if we try to press enter for a new line on multi-line modal input... it auto triggers the submit event. This PR fixes this behaviour by not submitting the modal in case the enter was pressed within an input text with multiline expected

Issue(s)

Before:
https://user-images.githubusercontent.com/34130764/146526766-d927326d-26d8-4ccb-85eb-8afa573b97c8.mp4

After:
https://user-images.githubusercontent.com/34130764/146526743-d7b063f3-c9f6-4e4f-a39a-480bd1b4d3dc.mp4

Steps to test or reproduce

Further comments

@murtaza98 murtaza98 requested review from a team December 17, 2021 10:04
@CLAassistant
Copy link

CLAassistant commented Dec 17, 2021

CLA assistant check
All committers have signed the CLA.

@murtaza98 murtaza98 marked this pull request as draft December 31, 2021 14:32
@murtaza98 murtaza98 marked this pull request as ready for review December 31, 2021 14:35
@murtaza98 murtaza98 requested a review from tiagoevanp December 31, 2021 14:35
@casalsgh casalsgh added this to the 4.3.1 milestone Jan 3, 2022
@casalsgh casalsgh merged commit 5368167 into develop Jan 3, 2022
@casalsgh casalsgh deleted the uikit/modal-auto-submit-fix branch January 3, 2022 14:35
sampaiodiego pushed a commit that referenced this pull request Jan 5, 2022
* [FIX] Enter not working on modal's multiline input

* Apply suggestions from code review

* simplify if condition

Co-authored-by: Tiago Evangelista Pinto <tiago.evangelista@rocket.chat>
@sampaiodiego sampaiodiego mentioned this pull request Jan 5, 2022
gabriellsh added a commit that referenced this pull request Jan 19, 2022
…hat into improve/setup-wizard

* 'improve/setup-wizard' of github.com:RocketChat/Rocket.Chat:
  Regression: Fix handling of http requests in apps bridge (#24211)
  Bump version to 4.3.2
  [FIX] Integration section crashing opening in My Account (#24068)
  Chore: Update Apps-Engine to 1.29.2 (#24171)
  [FIX] App Framework Enable hanging indefinitely (#24158)
  [FIX] CSV Importer failing to import users (#24090)
  Fix Engagement Dashboard API requests (#24142)
  [FIX] MAU when using micro services (#24204)
  [IMPROVE] Limit recent emojis to 27 (#24210)
  Bump version to 4.3.1
  Bump Fuselage packages
  [FIX][APPS] Action buttons not removed when app is disabled or uninstalled (#24107)
  [FIX][APPS] Prevents emails from being sent when apps framework is disabled (#24105)
  [FIX] Ensure Firefox 91 ESR support (#24096)
  Chore: Update Livechat (#24091)
  [FIX] Omnichannel enabled setting not working when creating rooms (#24067)
  [FIX] Enter not working on modal's multi-line input (#23981)
  [FIX] Omnichannel Current chats pagination not working (#24039)
@sampaiodiego sampaiodiego mentioned this pull request Jan 29, 2022
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.

5 participants