Skip to content

Commit bcf9c30

Browse files
tienifrnecolas
authored andcommitted
[fix] Prevent clipped text from being scrolled by drag
Close #2584
1 parent 4e2fcbf commit bcf9c30

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/react-native-web/src/exports/Text/__tests__/__snapshots__/index-test.js.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ exports[`components/Text prop "nativeID" value is set 1`] = `
150150

151151
exports[`components/Text prop "numberOfLines" value is set 1`] = `
152152
<div
153-
class="css-text-146c3p1 r-WebkitBoxOrient-8akbws r-display-krxsd3 r-maxWidth-dnmrzs r-overflow-1udh08x r-textOverflow-1udbk01"
153+
class="css-text-146c3p1 r-WebkitBoxOrient-8akbws r-display-krxsd3 r-maxWidth-dnmrzs r-overflow-1qsk4np r-textOverflow-1udbk01"
154154
dir="auto"
155155
/>
156156
`;

packages/react-native-web/src/exports/Text/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ const styles = StyleSheet.create({
223223
textMultiLine: {
224224
display: '-webkit-box',
225225
maxWidth: '100%',
226-
overflow: 'hidden',
226+
overflow: 'clip',
227227
textOverflow: 'ellipsis',
228228
WebkitBoxOrient: 'vertical'
229229
},

0 commit comments

Comments
 (0)