Separator config setting becomes red, and unusable.

Created on 10 May 2024, about 2 months ago
Updated 4 June 2024, 23 days ago

Problem/Motivation

If a date range field has a separator already defined before switching to the "AP Style" formatter, and it's not the value of "endash" nor "to", switching the Formatter to "AP Style" causes the separator select box to be red, and selecting a value doesn't make the error go away.

Steps to reproduce

  1. Create a Date Range field with Formatter set to "Default" and add a "-" (dash) as the separator.
  2. Apply the changes.
  3. Go back into that Date Range field and select "AP Style".
  4. Separator select box will be red, and switching to "En dash" or "to" doesn't make it happy.
  5. Set the Formatter back to "Default"
  6. Type the word "endash", replacing the "-"
  7. Set the Formatter to "AP Style", and now it's content with the value for that setting.

Proposed resolution

I suppose a potential solution could be to check if the value is something other than "endash" or "to" and default to one of the accepted values for the "AP Style" formatter.

πŸ› Bug report
Status

Active

Version

1.9

Component

User interface

Created by

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

Comments & Activities

Production build 0.69.0 2024