rh-node.js error: $action.next(...).textContent is not a function

Created on 25 July 2024, about 1 month ago
Updated 26 August 2024, 13 days ago

Problem/Motivation

On node edit forms, there is an Uncaught TypeError:

$action.next(...).textContent is not a function
at rh-node.js?v=1.x:16:58
at $.fn.drupalGetSummary (form.js?v=10.2.7:39:20)

This commit replaced a .text() call, made on a jquery collection object, with a .textContent() call, which would only be valid on a DOM Node object.

Steps to reproduce

With the rh_node module enabled, load a node edit form.

Proposed resolution

Provide a fix; should be trivial.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom james.williams

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024