You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Panel tabs are nor filtered by default (display all on load until manually filtered)
I didn't put a data-all attribute and set is-active on a data-target but by default all panel-block are displayed instead of filtering on the active data-target.
In addition to the click event listener there should be a load event listener that filter the active tab.
@noraj I believe you should be able to manually call the setActive method on the panel tabs instance. Something like below, this is untested and I'm writing it on my phone but should give an idea 😅
Something like that run on load would essentially be how the plugin would handle this internally. Syntax may not be accurate but hopefully gives the idea.
Versions
BulmaJS: 0.12
Browser: FF 83.0
Operating system: ArchLinux
Describe the bug
Panel tabs are nor filtered by default (display all on load until manually filtered)
I didn't put a
data-all
attribute and setis-active
on adata-target
but by default all panel-block are displayed instead of filtering on the active data-target.In addition to the click event listener there should be a load event listener that filter the active tab.
BulmaJS/src/plugins/panelTabs.js
Lines 106 to 115 in 10f5c15
To Reproduce
<a class="is-active" data-all>All</a>
is-active
to the public tabExpected behavior
Filtered with the default element on load.
Screenshots
Unfiltered on load (display all), filtered only manually with onClick event.
The text was updated successfully, but these errors were encountered: