Skip to content

Commit 0424896

Browse files
reseulrozele
authored andcommitted
Prevent the child of FocusableWindows from being optimized out (microsoft#1808)
1 parent 8d18517 commit 0424896

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Libraries/Components/FocusableWindows/FocusableWindows.windows.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,9 @@ function createFocusableComponent(Component: any) {
215215

216216
_splitProps(props: Object) {
217217
this._focusableProps = {};
218-
this._componentProps = {};
218+
// Prevent the child (that is View in most of the cases) from being collapsed.
219+
// Passed parameters can override this
220+
this._componentProps = { collapsable: false };
219221

220222
for (const key in props) {
221223
if (key in FocusableWindowsTemplate.focusablePropTypes) {

0 commit comments

Comments
 (0)