Skip to content

Commit

Permalink
Remove data-id assignment for layer-view element (#1633)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbauszus-glx authored Nov 1, 2024
1 parent f88d2f3 commit 4f4d60b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/ui/layers/listview.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export default function (params) {
group.meta = mapp.utils.html.node`<div class="meta">`

group.drawer = mapp.ui.elements.drawer({
data_id: `layer-drawer`,
data_id: layer.group,
class: `layer-group ${layer.groupClassList || ''}`,
header: mapp.utils.html`
<h2>${layer.group}</h2>
Expand Down
4 changes: 2 additions & 2 deletions lib/ui/layers/view.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export default function layerView(layer) {
const drawerClass = `layer-view raised ${layer.classList || ''} ${content.length ? '' : 'empty'}`

layer.drawer = mapp.ui.elements.drawer({
data_id: `layer-drawer`,
data_id: layer.key,
class: drawerClass,
header,
content
Expand Down Expand Up @@ -242,7 +242,7 @@ function changeEnd(layer) {
layer.zoomBtn.style.display = 'block'

// Collapse drawer and disable layer.view.
layer.view.querySelector('[data-id=layer-drawer]').classList.remove('expanded')
layer.view.querySelector('.layer-view.drawer').classList.remove('expanded')

// Disable layer display toggle.
layer.displayToggle.classList.add('disabled')
Expand Down

0 comments on commit 4f4d60b

Please sign in to comment.