Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat(polls): answer and question inputs native updates (#13166)
Calinteodora828cacbfeac
diff --git a/react/features/base/ui/components/native/Input.tsx b/react/features/base/ui/components/native/Input.tsxindex 0add754ec8..10ea817c9a 100644--- a/react/features/base/ui/components/native/Input.tsx+++ b/react/features/base/ui/components/native/Input.tsx@@ -38,6 +38,7 @@ interface IProps extends IInputProps {onFocus?: ((e: NativeSyntheticEvent<TextInputFocusEventData>) => void) | undefined;onKeyPress?: ((e: NativeSyntheticEvent<TextInputKeyPressEventData>) => void) | undefined;onSubmitEditing?: (value: string) => void;+ pointerEvents?: 'box-none' | 'none' | 'box-only' | 'auto' | undefined;returnKeyType?: ReturnKeyTypeOptions | undefined;secureTextEntry?: boolean | undefined;textContentType?: any;@@ -70,6 +71,7 @@ const Input = forwardRef<TextInput, IInputProps>(({onKeyPress,onSubmitEditing,placeholder,+ pointerEvents,returnKeyType,secureTextEntry,textContentType,@@ -134,6 +136,7 @@ const Input = forwardRef<TextInput, IInputProps>(({onSubmitEditing = { handleSubmitEditing }placeholder = { placeholder }placeholderTextColor = { BaseTheme.palette.text02 }+ pointerEvents = { pointerEvents }ref = { ref }returnKeyType = { returnKeyType }secureTextEntry = { secureTextEntry }diff --git a/react/features/polls/components/native/PollCreate.js b/react/features/polls/components/native/PollCreate.jsindex 64c31da7b7..35bcf4de97 100644--- a/react/features/polls/components/native/PollCreate.js+++ b/react/features/polls/components/native/PollCreate.js@@ -109,6 +109,9 @@ const PollCreate = (props: AbstractProps) => {onChange = { text => setAnswer(index, text) }onKeyPress = { ev => onAnswerKeyDown(index, ev) }placeholder = { t('polls.create.answerPlaceholder', { index: index + 1 }) }++ // This is set to help the touch event not be propagated to any subviews.+ pointerEvents = { 'auto' }ref = { input => registerFieldRef(index, input) }value = { answers[index] } />{@@ -133,6 +136,9 @@ const PollCreate = (props: AbstractProps) => {onChange = { setQuestion }onSubmitEditing = { onQuestionKeyDown }placeholder = { t('polls.create.questionPlaceholder') }++ // This is set to help the touch event not be propagated to any subviews.+ pointerEvents = { 'auto' }value = { question } /><Divider style = { styles.fieldSeparator } /><FlatListdiff --git a/react/features/polls/components/native/PollsPane.js b/react/features/polls/components/native/PollsPane.jsindex c0c0926dbe..bb87922b38 100644--- a/react/features/polls/components/native/PollsPane.js+++ b/react/features/polls/components/native/PollsPane.js@@ -46,7 +46,7 @@ const PollsPane = (props: AbstractProps) => {return (<JitsiScreencontentContainerStyle = { chatStyles.pollPane }- disableForcedKeyboardDismiss = { !createMode }+ disableForcedKeyboardDismiss = { true }hasTabNavigator = { true }style = { chatStyles.pollPaneContainer }>{