@streamsai/ui 0.1.2 → 0.1.3
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.
|
@@ -1068,7 +1068,10 @@ function TypeaheadMenuAboveCaret({ anchor, dataAttr, className, children, option
|
|
|
1068
1068
|
width: initialPlacement.width,
|
|
1069
1069
|
// Beats `max-h-60` when the room above the menu is smaller than 240px.
|
|
1070
1070
|
maxHeight: initialPlacement.maxHeight,
|
|
1071
|
-
},
|
|
1071
|
+
},
|
|
1072
|
+
// A tap on a row must not move focus off the composer: on iOS that pulses the keyboard
|
|
1073
|
+
// state for a moment (focusout, then focusin) and the message list behind it jumps.
|
|
1074
|
+
onMouseDown: (event) => event.preventDefault(), onScroll: onNearEnd
|
|
1072
1075
|
? (event) => {
|
|
1073
1076
|
const el = event.currentTarget;
|
|
1074
1077
|
if (el.scrollTop + el.clientHeight >= el.scrollHeight - TYPEAHEAD_NEAR_END_PX) {
|
package/package.json
CHANGED