-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Open
Labels
BugIssues which are marked as BugIssues which are marked as Bugauto refreshconfirmedIssues that have been confirmed with a reduced test case and identify a bug.Issues that have been confirmed with a reduced test case and identify a bug.extensionIssues for adding or updating our extension.Issues for adding or updating our extension.
Description
Bootstraptable version(s) affected
1.26.0
Description
In version >=1.24.1 the autoRefresh button is never shown as active.
Example(s)
The official autoRefresh extension example does not work: https://examples.bootstrap-table.com/template.html?v=971&url=extensions/auto-refresh.html
Possible Solutions
Before c048f9d the autoRefresh button used to have the class .auto-refresh. That is still expected in the selector here:
bootstrap-table/src/extensions/auto-refresh/bootstrap-table-auto-refresh.js
Lines 62 to 75 in 83e8651
| toggleAutoRefresh () { | |
| if (this.options.autoRefresh) { | |
| if (this.options.autoRefreshStatus) { | |
| clearInterval(this.options.autoRefreshFunction) | |
| this.$toolbar.find('>.columns .auto-refresh') | |
| .removeClass(this.constants.classes.buttonActive) | |
| } else { | |
| this.setupRefreshInterval() | |
| this.$toolbar.find('>.columns .auto-refresh') | |
| .addClass(this.constants.classes.buttonActive) | |
| } | |
| this.options.autoRefreshStatus = !this.options.autoRefreshStatus | |
| } | |
| } |
Therefore either the .auto-refresh class must be added again or the selectors must be updated (maybe '>.columns [name="autoRefresh"]'?).
Additional Context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BugIssues which are marked as BugIssues which are marked as Bugauto refreshconfirmedIssues that have been confirmed with a reduced test case and identify a bug.Issues that have been confirmed with a reduced test case and identify a bug.extensionIssues for adding or updating our extension.Issues for adding or updating our extension.