@jsenv/navi 0.30.3 → 0.30.4

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/docs/scroll.md CHANGED
@@ -254,6 +254,14 @@ list warns in dev when the second is missing:
254
254
  A row selected during the search does not hold the view: emptying the search
255
255
  takes the list back to where it was, which may be nowhere near that row.
256
256
 
257
+ The offset is given back once, in the frame after the search empties, and then
258
+ forgotten. A list under a `display: none` at that moment cannot scroll, so it has
259
+ nowhere to put it: shown again, it stands at its start, and the `navi_scroll` of
260
+ that restore carries no `item`. It does not wait to be shown, because the user
261
+ may have moved on by then, and an old offset would surprise them more than the
262
+ start of the list. A list that is only out of view still gets its offset back. To
263
+ keep the place across a hide, empty the search once the list is shown again.
264
+
257
265
  ### Loading: two different situations
258
266
 
259
267
  `loading` (with `loadingFallback`, `loadingSkeletonCount`, `renderSkeleton`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/navi",
3
- "version": "0.30.3",
3
+ "version": "0.30.4",
4
4
  "type": "module",
5
5
  "description": "Library of components including navigation to create frontend applications",
6
6
  "repository": {