mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-04 22:59:01 +02:00
Fix switch tooltip not showing the proper text on new plans page (#8608)
GitOrigin-RevId: efb49c7a6045b6a5b26a0b0d84a24d151f76f192
This commit is contained in:
@@ -24,6 +24,11 @@ export function switchMonthlyAnnual(currentMonthlyAnnualSwitchValue) {
|
||||
currentMonthlyAnnualSwitchValue === 'annual'
|
||||
)
|
||||
|
||||
document.querySelectorAll('[data-ol-tooltip-period]').forEach(el => {
|
||||
const period = el.getAttribute('data-ol-tooltip-period')
|
||||
el.hidden = period !== currentMonthlyAnnualSwitchValue
|
||||
})
|
||||
|
||||
document
|
||||
.querySelectorAll('[data-ol-plans-v2-table-annual-price-before-discount]')
|
||||
.forEach(el => {
|
||||
|
||||
Reference in New Issue
Block a user