Error thrown when typing a number in a text field

Created on 12 September 2024, 4 months ago

Overview

Steps to reproduce

Select a component with a text prop
Type in a number
An error dialog immediately pops up.

The website encountered an unexpected error. Try again later.

Drupal\Core\Render\Component\Exception\InvalidComponentException: [subheading] Integer value found, but a string or an object is required in Drupal\Core\Theme\Component\ComponentValidator->validateProps() (line 203 of core/lib/Drupal/Core/Theme/Component/ComponentValidator.php).

Proposed resolution

I suspect the value should be cast to a string before being validated.

User interface changes

🐛 Bug report
Status

Closed: duplicate

Component

Page builder

Created by

🇬🇧United Kingdom jessebaker

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

Comments & Activities

Production build 0.71.5 2024