-
- Downloads
[FIX] website: make navbar content invisible when block invisible
Steps to reproduce: 1. Go to the website 2. Add website languages 3. Drag Table Of Content 4. Select snippet block 5. Go to customize the block 6. Select visibility conditionally - set visible/hide for languages. Before the commit, selecting block visibility conditionally makes only the block is invisible but not the navbar content is invisible due to the absence of the `data-visibility-id` attribute. In this commit, handling conditional visibility of the navbar when the the snippet block is invisible. Also, This commit adds a check for missing visibility IDs in anchor links. The code checks if both the visibility ID values exist or if they are both missing. If either condition is met, the function returns without creating the `<a>` tag. task-3373943 closes odoo/odoo#134194 X-original-commit: d120b838 Signed-off-by:Romain Derie (rde) <rde@odoo.com>
Please register or sign in to comment