Uncaught TypeError: drupalSettings.time_range_picker is undefined

Created on 29 October 2020, about 4 years ago
Updated 9 November 2023, about 1 year ago

Hi !

Problem/Motivation

On drupal 9 build, when activate the module and use one specific time picker field, the console said "Uncaught TypeError: drupalSettings.time_range_picker is undefined" because the JS doesn't test if drupalSettings.time_(range_)picker is set.

Steps to reproduce

Enable the module, add a timepicker field to a content and go to the content edit page.

Proposed resolution

A patch will be added with some tests to the JS part to check if drupalSettings.time_(range_)picker exists in drupalSettings before try to retrieve informations into.

Best regards.

πŸ› Bug report
Status

Postponed: needs info

Version

5.3

Component

Code

Created by

πŸ‡¨πŸ‡­Switzerland titouille

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024