Commit cd9f56f Sebastian Flick
committed
1 parent 29cabea commit cd9f56f Copy full SHA for cd9f56f
File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 174
174
})
175
175
.on (' click' , (e ) => {
176
176
const reference = e .currentTarget ;
177
- const popup = popupLabels[reference .textContent ];
177
+ const popup =
178
+ popupLabels[
179
+ codices .find ((i ) => i .sigil === reference .textContent )? .handle || reference .textContent
180
+ ];
178
181
if (popup && reference) {
179
182
computePosition (reference, popup, {
180
183
placement: ' top'
189
192
})
190
193
.on (' blur' , (e ) => {
191
194
const reference = e .currentTarget ;
192
- const popup = popupLabels[reference .textContent ];
195
+ const popup =
196
+ popupLabels[
197
+ codices .find ((i ) => i .sigil === reference .textContent )? .handle || reference .textContent
198
+ ];
193
199
if (popup) {
194
200
popup .style .opacity = ' 0' ;
195
201
}
You can’t perform that action at this time.
0 commit comments