Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scroll top when call updateRow with customView extension #7326

Open
fabienwnklr opened this issue May 10, 2024 · 0 comments
Open

Scroll top when call updateRow with customView extension #7326

fabienwnklr opened this issue May 10, 2024 · 0 comments
Labels
Bug Issues which are marked as Bug

Comments

@fabienwnklr
Copy link

Bootstraptable version(s) affected

1.22.5

Description

If i use extension customView and want to update row data, view is refreshed and scrolled to top of table..

Work fine without customView extension

Example(s)

For reproduce scroll to bottom of table and click on updateRow button here : https://live.bootstrap-table.com/code/fabienwnklr/17637

Possible Solutions

I think issue come from here https://github.com/wenzhixin/bootstrap-table/blob/develop/src/extensions/custom-view/bootstrap-table-custom-view.js#L92, super.initBody is call without params where is call with true here https://github.com/wenzhixin/bootstrap-table/blob/develop/src/bootstrap-table.js#L2646

Additional Context

No response

@fabienwnklr fabienwnklr added the Bug Issues which are marked as Bug label May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issues which are marked as Bug
Projects
None yet
Development

No branches or pull requests

1 participant