Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(giphy) Allow space in input (#12221)

Robert Pintilii62a10e658751
diff --git a/react/features/gifs/components/web/GifsMenu.tsx b/react/features/gifs/components/web/GifsMenu.tsx
index 360edd1ce1..fc7fdb8900 100644
--- a/react/features/gifs/components/web/GifsMenu.tsx
+++ b/react/features/gifs/components/web/GifsMenu.tsx
@@ -177,6 +177,10 @@ function GifsMenu() {
// This fixes that.
useEffect(() => setSearchKey(''), []);
+ const onInputKeyPress = useCallback((e: React.KeyboardEvent) => {
+ e.stopPropagation();
+ }, []);
+
const gifMenu = (
<div
className = { cx(styles.gifsMenu,
@@ -186,6 +190,7 @@ function GifsMenu() {
autoFocus = { true }
className = { cx(styles.searchField, 'gif-input') }
onChange = { handleSearchKeyChange }
+ onKeyPress = { onInputKeyPress }
placeholder = { t('giphy.search') }
// eslint-disable-next-line react/jsx-no-bind
ref = { inputElement => {