Skip to content

Commit f98b072

Browse files
authored
Merge pull request #726 from meyerlor/fix/popup-tab-switching-bootstrap5
Fix/popup tab switching bootstrap5
2 parents 4ab63fa + 42c6ad0 commit f98b072

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lizmap/plugin/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def read_cfg_file(self, skip_tables: bool = False) -> Dict:
103103
manager.from_json(data)
104104

105105
if key == "datavizLayers":
106-
self.dataviz_mngr.read_cfg(sjson)
106+
self.read_cfg(sjson)
107107

108108
except Exception as e:
109109
if self.is_dev_version:

lizmap/tooltip.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,10 @@ def create_popup_node_item_from_form(
169169
if bootstrap_5:
170170
h += (
171171
f'<li class="nav-item">'
172-
f'<button class="nav-link {active}" data-bs-toggle="tab" '
173-
f'data-bs-target="#popup_dd_[% $id %]_{id_tab}">'
172+
f'<a class="nav-link {active}" data-bs-toggle="tab" data-toggle="tab" '
173+
f'href="#popup_dd_[% $id %]_{id_tab}" role="tab">'
174174
f'{node.name()}'
175-
f'</button>'
175+
f'</a>'
176176
f'</li>'
177177
)
178178
else:

0 commit comments

Comments
 (0)