question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issues with # entries to show and page focus.

See original GitHub issue

Hi,

I implemented your libary but when I started testing with some more data I found the following issues:

  • When I set :ds-show-entries="100" on DatasetShow it will automatically focus on the last page.
  • The same will happen if you leave the default of 10 and switch to 100 using the dropdown or switch from 100 to 50, go to page one and reselect 100.

sidenote: you can also see that when we switch from 100 -> 25 the pagenr 3 stays active. because of this item 50-74 gets rendered. I think this is a bit weird. I think switching the amount of items should always preserve the first item and add the amount needed after that. eg.

  • show 100 (showing 201-250)
  • switch to 25 (showing 201-225)

I made a codepen/screencast so you can see this issue for yourself: https://codesandbox.io/embed/vue-2-playground-forked-0rgcdo?fontsize=14&hidenavigation=1&theme=dark

https://user-images.githubusercontent.com/9568274/183077655-71ef63a6-d3bc-4b51-8347-d3560b9451ef.mov

Vue @ 2.6.12 -> tried with latest version too but issue still exists vue-dataset @ 1.1.15 -> issue seems to exists from all versions > 1.1.5 (lower versions can not run the code as is.)

Hope you can find a solution for this issue since I really like how this component is made apart from this.

Thanks for your work & time!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
pieterjandebruynecommented, Aug 8, 2022

@kouts that seems to have fixed the issue. Thanks for the quick fix!

0reactions
koutscommented, Aug 7, 2022

The issue with the number of entries should be now fixed in https://github.com/kouts/vue-dataset/tree/v1.1.16 @pieterjandebruyne let me know if that worked for you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Soft Keyboard does not Pop Up when Entry View's Focus is ...
When Focus is set to an Entry view programmatically (entryTest.Focus()), the cursor blinks in the edit field of the Entry view, but the...
Read more >
Entry.Focus() Not Working For Android - MSDN - Microsoft
I don't have an Entry on the first page of my app, but do automatically set focus to the first Entry on other...
Read more >
Appropriately Set the Focus on Each Page Load of a Web ...
Let me demonstrate. As a keyboard user, when I move to the next page, and that page loads, let's see where the focus...
Read more >
Can't focus elements on load in Chrome - very weird bug (in ...
When a user comes on the website, the user cannot focus any element (via mouse click, if they focus it via tabbing, the...
Read more >
Provide logical and visible focus indication
But if a control is hidden but available to receive focus, such as a “skip to main content” link, then it should become...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found