generated from boboko/starter
temp emails, reviews theming and form, minor change in checkout module, validation translations seeder
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { Controller } from '@hotwired/stimulus'
|
||||
|
||||
// The review count sits next to the star rating, outside the tabs markup —
|
||||
// too far apart in the DOM for a plain data-action, hence the outlet.
|
||||
export default class extends Controller {
|
||||
static outlets = ['tabs']
|
||||
|
||||
activate() {
|
||||
this.tabsOutlet.activate('reviews')
|
||||
this.tabsOutlet.element.scrollIntoView({ block: 'start', behavior: 'smooth' })
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user