diff options
| author | Hsieh Chin Fan <pham@topo.tw> | 2024-10-23 23:46:10 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <pham@topo.tw> | 2024-10-23 23:46:10 +0800 |
| commit | 68da4673389558798a74c1dd4b34246085340823 (patch) | |
| tree | 5abd20ca0eaf901b15771f2a455d11b2a7b59be1 /src | |
| parent | 81e075ffea3db9f4bd7773189fa624fd0feb096f (diff) | |
fix: reference for htmlHolder
Diffstat (limited to 'src')
| -rw-r--r-- | src/dumbymap.mjs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dumbymap.mjs b/src/dumbymap.mjs index d512136..706a4fe 100644 --- a/src/dumbymap.mjs +++ b/src/dumbymap.mjs | |||
| @@ -381,7 +381,7 @@ export const generateMaps = (container, { | |||
| 381 | }) | 381 | }) |
| 382 | } else if (showcase.contains(target)) { | 382 | } else if (showcase.contains(target)) { |
| 383 | // Check placeholder is inside Semantic HTML | 383 | // Check placeholder is inside Semantic HTML |
| 384 | const placeholder = htmlHolder.querySelector( | 384 | const placeholder = dumbymap.htmlHolder.querySelector( |
| 385 | `[data-placeholder="${target.id}"]`, | 385 | `[data-placeholder="${target.id}"]`, |
| 386 | ) | 386 | ) |
| 387 | if (!placeholder) { throw Error(`Cannot find placeholder for map "${target.id}"`) } | 387 | if (!placeholder) { throw Error(`Cannot find placeholder for map "${target.id}"`) } |