Working on email templating, updating with swagger
This commit is contained in:
@@ -34,6 +34,7 @@ export function GroupControl({ position = 'bottomright', buttons }: GroupControl
|
||||
// @ts-expect-error ctrl is a L.Control
|
||||
const container = (ctrl as unknown)._container as HTMLElement;
|
||||
rootRef.current = createRoot(container);
|
||||
L.DomEvent.disableClickPropagation(container);
|
||||
|
||||
return () => {
|
||||
ctrl.remove();
|
||||
@@ -48,10 +49,10 @@ export function GroupControl({ position = 'bottomright', buttons }: GroupControl
|
||||
{buttons.map((b, i) => (
|
||||
<a
|
||||
key={i}
|
||||
href="#"
|
||||
href='#'
|
||||
title={b.title}
|
||||
className={b.active ? 'active' : ''}
|
||||
onClick={e => {
|
||||
onClick={(e) => {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
b.onClick();
|
||||
|
||||
Reference in New Issue
Block a user