Skip to content

Conversation

@petyosi
Copy link
Contributor

@petyosi petyosi commented Aug 22, 2022

Submit a pull request

🎯 Goal

Hitting enter in Korean text mode entry submits twice. This PR fixes it.

🛠 Implementation details

I've patched this by ignoring compositing events (left links in the comments for reference).
Long term, we should not handle keydown but keypress (considered a better practice). But I am not sure about the implications of such change.

image

@codecov
Copy link

codecov bot commented Aug 22, 2022

Codecov Report

Merging #1720 (da030e6) into develop (565ee55) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff            @@
##           develop    #1720   +/-   ##
========================================
  Coverage    79.70%   79.70%           
========================================
  Files          229      229           
  Lines         5803     5804    +1     
  Branches      1713     1644   -69     
========================================
+ Hits          4625     4626    +1     
- Misses        1031     1038    +7     
+ Partials       147      140    -7     
Impacted Files Coverage Δ
src/components/AutoCompleteTextarea/Textarea.jsx 70.94% <100.00%> (+0.11%) ⬆️
src/components/Thread/Thread.tsx 90.00% <0.00%> (ø)
src/components/Channel/Channel.tsx 80.41% <0.00%> (ø)
src/components/MessageInput/hooks/utils.ts 63.29% <0.00%> (ø)
src/components/ChannelSearch/ChannelSearch.tsx 41.66% <0.00%> (ø)
...rc/components/MessageInput/hooks/useFileUploads.ts 86.04% <0.00%> (ø)
...c/components/MessageInput/hooks/useImageUploads.ts 87.71% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@petyosi petyosi merged commit 5d781d8 into develop Aug 22, 2022
@petyosi petyosi deleted the fix-korean-input branch August 22, 2022 13:11
@MartinCupela MartinCupela mentioned this pull request Aug 29, 2022
github-actions bot pushed a commit that referenced this pull request Aug 29, 2022
# [9.5.0](v9.4.1...v9.5.0) (2022-08-29)

### Bug Fixes

* include mdast-util-find-and-replace into our CJS bundle ([#1702](#1702)) ([61c4eec](61c4eec)), closes [#1698](#1698)
* prevent double submissions in korean ([#1720](#1720)) ([5d781d8](5d781d8))
* replace FileReader with URL.createObjectURL ([#1701](#1701)) ([c8a490e](c8a490e))
* **Vite:** add emoji-mart (emoji, picker) re-export ([#1724](#1724)) ([c90cf4b](c90cf4b))

### Features

* increase and support overriding jump to message limit ([#1718](#1718)) ([8c720f4](8c720f4))
@petyosi
Copy link
Contributor Author

petyosi commented Aug 29, 2022

🎉 This PR is included in version 9.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this pull request Sep 6, 2022
# [10.0.0-theming-v2.3](v10.0.0-theming-v2.2...v10.0.0-theming-v2.3) (2022-09-06)

### Bug Fixes

* include mdast-util-find-and-replace into our CJS bundle ([#1702](#1702)) ([#1703](#1703)) ([8010889](8010889)), closes [#1698](#1698)
* prevent double submissions in korean ([#1720](#1720)) ([5d781d8](5d781d8))
* ThemingV2 beta adjustments ([#1728](#1728)) ([785ee11](785ee11))
* **ThemingV2:** MessageInputFlat missing lodash/zipObject ([#1721](#1721)) ([dd8a457](dd8a457))
* **Vite:** add emoji-mart (emoji, picker) re-export ([#1724](#1724)) ([c90cf4b](c90cf4b))

### Features

* increase and support overriding jump to message limit ([#1718](#1718)) ([8c720f4](8c720f4))
* **ThemingV2:** PopperTooltip component ([#1714](#1714)) ([9b6301e](9b6301e))
@petyosi
Copy link
Contributor Author

petyosi commented Sep 6, 2022

🎉 This PR is included in version 10.0.0-theming-v2.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants