@dloizides/ui-forms 1.13.1 → 1.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React2, { useState, useCallback, useMemo, useRef, useEffect, useLayoutEffect } from 'react';
|
|
2
|
-
import { Platform, StyleSheet, TextInput, View, Text, Switch, Pressable, TouchableOpacity } from 'react-native';
|
|
2
|
+
import { Platform, StyleSheet, TextInput, View, Text, Switch, Pressable, ScrollView, TouchableOpacity } from 'react-native';
|
|
3
3
|
import { useUi } from '@dloizides/ui-feedback';
|
|
4
4
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
5
|
import { Button } from '@dloizides/ui-buttons';
|
|
@@ -1113,7 +1113,7 @@ function AnchoredMenu({
|
|
|
1113
1113
|
accessibilityRole: "menu",
|
|
1114
1114
|
style: [controlStyles.menu, { borderColor: colors.border, backgroundColor: colors.surface }, portalStyle],
|
|
1115
1115
|
testID: `${testID}-menu`,
|
|
1116
|
-
children: options.map((opt) => {
|
|
1116
|
+
children: /* @__PURE__ */ jsx(ScrollView, { keyboardShouldPersistTaps: "handled", nestedScrollEnabled: true, children: options.map((opt) => {
|
|
1117
1117
|
const active = opt.value === selectedValue;
|
|
1118
1118
|
return /* @__PURE__ */ jsx(
|
|
1119
1119
|
Pressable,
|
|
@@ -1130,7 +1130,7 @@ function AnchoredMenu({
|
|
|
1130
1130
|
},
|
|
1131
1131
|
opt.value
|
|
1132
1132
|
);
|
|
1133
|
-
})
|
|
1133
|
+
}) })
|
|
1134
1134
|
}
|
|
1135
1135
|
);
|
|
1136
1136
|
if (usePortal && IS_WEB6) return createPortal(menu, document.body);
|