{"record":{"id":"c2c02ade35a8dd1f","repo":"ueberdosis/tiptap","slug":"resizablenodeview-createcustomhandle-directio","errorCode":null,"errorMessage":"[ResizableNodeView] createCustomHandle(\"${direction}\") did not return an HTMLElement. Falling back to default handle.","messagePattern":"\\[ResizableNodeView\\] createCustomHandle\\(\"(.+?)\"\\) did not return an HTMLElement\\. Falling back to default handle\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/core/src/lib/ResizableNodeView.ts","lineNumber":677,"sourceCode":"\n  /**\n   * Creates and attaches all resize handles to the wrapper.\n   *\n   * Iterates through the configured directions, creates a handle for each,\n   * positions it, attaches the mousedown listener, and appends it to the DOM.\n   */\n  private attachHandles(): void {\n    this.directions.forEach(direction => {\n      let handle: HTMLElement\n\n      if (this.createCustomHandle) {\n        handle = this.createCustomHandle(direction)\n      } else {\n        handle = this.createHandle(direction)\n      }\n\n      if (!(handle instanceof HTMLElement)) {\n        console.warn(\n          `[ResizableNodeView] createCustomHandle(\"${direction}\") did not return an HTMLElement. Falling back to default handle.`,\n        )\n        handle = this.createHandle(direction)\n      }\n\n      if (!this.createCustomHandle) {\n        this.positionHandle(handle, direction)\n      }\n\n      handle.addEventListener('mousedown', event => this.handleResizeStart(event, direction))\n      handle.addEventListener('touchstart', event =>\n        this.handleResizeStart(event as unknown as MouseEvent, direction),\n      )\n\n      this.handleMap.set(direction, handle)\n\n      this.wrapper.appendChild(handle)\n    })","sourceCodeStart":659,"sourceCodeEnd":695,"githubUrl":"https://github.com/ueberdosis/tiptap/blob/496d53afd7e4e3c7424b4749adeff4f45e27ddb0/packages/core/src/lib/ResizableNodeView.ts#L659-L695","documentation":"Error \"[ResizableNodeView] createCustomHandle(\"${direction}\") did not return an HTMLElement. Falling back to default handle.\" thrown in ueberdosis/tiptap.","triggerScenarios":"Thrown at packages/core/src/lib/ResizableNodeView.ts:677 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"496d53afd7e4e3c7424b4749adeff4f45e27ddb0","analyzedAt":"2026-08-26T22:41:43.400Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}