Default Active Tab Not Working for Tab Filter
In my List page I have a Tabs filter for each day of the week. But when I try to set the default active tab, it just wont work. The default active tab is always the first one no matter what I return from
getDefaultActiveTab()
3 Replies
what about this?
let me try, one sec...
Yeah, that works with static values. But I want to set it dynamically using
Carbon::today()->format('l')
I can see how overriding the mount()
method would help, I just don't know if that's the best way to do it
Oh, never mind. I just did a composer update and now it works 🤦🏼♂️I thought it was strange that the ListRecords base class wasn't using the getDefaultActiveTab method in mount(), and now I know why