File tree 5 files changed +16
-8
lines changed
5 files changed +16
-8
lines changed Original file line number Diff line number Diff line change
1
+ ## [ 11.12.1] ( https://github.com/GetStream/stream-chat-react/compare/v11.12.0...v11.12.1 ) (2024-03-19)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * await word replace before submitting message ([ #2332 ] ( https://github.com/GetStream/stream-chat-react/issues/2332 ) ) ([ f396a81] ( https://github.com/GetStream/stream-chat-react/commit/f396a814723a49fdc4b828ea62354946f6815a86 ) )
7
+ * link-breaking typos ([ #2322 ] ( https://github.com/GetStream/stream-chat-react/issues/2322 ) ) ([ 17f6b0d] ( https://github.com/GetStream/stream-chat-react/commit/17f6b0d6bc4f81e1e8272481ce3cd7da1c58ecba ) )
8
+
1
9
## [ 11.12.0] ( https://github.com/GetStream/stream-chat-react/compare/v11.11.0...v11.12.0 ) (2024-03-07)
2
10
3
11
Original file line number Diff line number Diff line change 146
146
"@semantic-release/changelog" : " ^6.0.2" ,
147
147
"@semantic-release/git" : " ^10.0.1" ,
148
148
"@stream-io/rollup-plugin-node-builtins" : " ^2.1.5" ,
149
- "@stream-io/stream-chat-css" : " ^4.9.0 " ,
149
+ "@stream-io/stream-chat-css" : " ^4.9.1 " ,
150
150
"@testing-library/jest-dom" : " ^6.1.4" ,
151
151
"@testing-library/react" : " ^13.1.1" ,
152
152
"@testing-library/react-hooks" : " ^8.0.0" ,
Original file line number Diff line number Diff line change @@ -113,14 +113,14 @@ export class ReactTextareaAutocomplete extends React.Component {
113
113
if ( event . key === 'Escape' ) return this . _closeAutocomplete ( ) ;
114
114
} ;
115
115
116
- _onEnter = ( event ) => {
116
+ _onEnter = async ( event ) => {
117
117
if ( ! this . textareaRef ) return ;
118
118
119
119
const trigger = this . state . currentTrigger ;
120
120
121
121
if ( ! trigger || ! this . state . data ) {
122
122
// trigger a submit
123
- this . _replaceWord ( ) ;
123
+ await this . _replaceWord ( ) ;
124
124
if ( this . textareaRef ) {
125
125
this . textareaRef . selectionEnd = 0 ;
126
126
}
Original file line number Diff line number Diff line change @@ -826,7 +826,7 @@ function axeNoViolations(container) {
826
826
} ) ,
827
827
) ;
828
828
829
- act ( ( ) => fireEvent . keyDown ( input , { key : 'Enter' } ) ) ;
829
+ await act ( ( ) => fireEvent . keyDown ( input , { key : 'Enter' } ) ) ;
830
830
831
831
expect ( submitHandler ) . toHaveBeenCalledWith (
832
832
expect . objectContaining ( {
Original file line number Diff line number Diff line change 2236
2236
crypto-browserify "^3.11.0"
2237
2237
process-es6 "^0.11.2"
2238
2238
2239
- "@stream-io/stream-chat-css@^4.9.0 ":
2240
- version "4.9.0 "
2241
- resolved "https://registry.yarnpkg.com/@stream-io/stream-chat-css/-/stream-chat-css-4.9.0 .tgz#5e350268c313703c59fc2292f4c8e756c72d2fef "
2242
- integrity sha512-ibHLGgY8L+K73Nb/Jof6XI3i77R0vVzpYd+WliCukJrpQo5To6I99gJMwzUA6Xis5TCDj35MDnWSzy1aJsJhpA ==
2239
+ "@stream-io/stream-chat-css@^4.9.1 ":
2240
+ version "4.9.1 "
2241
+ resolved "https://registry.yarnpkg.com/@stream-io/stream-chat-css/-/stream-chat-css-4.9.1 .tgz#f81825509385c3fb9dbdb67c0447bd3106ad03ac "
2242
+ integrity sha512-e8ISiLoUb5ZcFnY7Xg0pKDDz9UOFQPXzMeo5olTHlbP4goS+Ss0gnoUALIe+pTvfEGOhmaOa+EPrPheDzqflSg ==
2243
2243
2244
2244
"@stream-io/transliterate@^1.5.5":
2245
2245
version "1.5.5"
You can’t perform that action at this time.
0 commit comments