Project

General

Profile

Actions

Bug #26441

closed

Default value for date column not set to React component

Added by Ondřej Ezr about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
JavaScript stack
Target version:
-
Difficulty:
trivial
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

We are calling the mounter in application_helper using:

# NOTE the default: _('N/A') part
mount_react_component(component, "##{date_id}", { date: time.try(:iso8601), default: _('N/A'), seconds: seconds }.to_json, { :flatten_data => true }) 

But all the components are expecting `defaultValue` instead.


Related issues 1 (0 open1 closed)

Related to Foreman - Feature #21312: Foreman should provide react components for formatting datesClosedTomáš StrachotaActions
Actions

Also available in: Atom PDF