fix(ts_web): resolve TypeScript nullability and event typing issues across web components
This commit is contained in:
@@ -105,10 +105,10 @@ export class WysiwygDragDropHandler {
|
||||
handleDragEnd(): void {
|
||||
// Clean up visual state
|
||||
const allBlocks = this.component.editorContentRef.querySelectorAll('.block-wrapper');
|
||||
allBlocks.forEach((block: HTMLElement) => {
|
||||
block.classList.remove('dragging', 'move-up', 'move-down');
|
||||
block.style.removeProperty('--drag-offset');
|
||||
block.style.removeProperty('transform');
|
||||
allBlocks.forEach((block) => {
|
||||
(block as HTMLElement).classList.remove('dragging', 'move-up', 'move-down');
|
||||
(block as HTMLElement).style.removeProperty('--drag-offset');
|
||||
(block as HTMLElement).style.removeProperty('transform');
|
||||
});
|
||||
|
||||
// Remove dragging class from editor
|
||||
|
||||
Reference in New Issue
Block a user