Skip to content

Required widget fields not preventing save and causing "undefined" Title confusion #6

@linmck

Description

@linmck

Label, Description, and Widget Identifiers are all starred as required for creating a new widget but do not prevent a user from saving the widget if a Title has been entered.

Given that the Title of a widget should be populated from the Label field, there is some weird behavior if a user enters the title, makes no other changes, and then saves a draft. Is it possible to prevent a save (instead of overriding with "undefined") when Label, Description, and Widget Identifier are not completed? Additionally it may be worth having some language around creating the Label in order to populate the Title and permalink to avoid any confusion.

To recreate:

  1. Add New Widget
  2. See that Title says "undefined"
  3. Type "Test" into Title field
  4. See the created permalink
  5. Make no other changes (if you attempt to make any other changes after typing in a Title, it will also override to "undefined")
  6. Save a draft (this is not prevented by the fact that Label Widget Identifier and Description are starred as required fields
  7. See that draft has been saved
  8. See that Title has been overwritten with "undefined"
  9. See that permalink still shows test / is unchanged
  10. Navigate back to Widgets list
  11. See that the widget has been saved with Test as the title
  12. Click on Test widget
  13. See that Test will flicker in the Title field and then be replaced by "undefined"
Screen.Recording.2024-11-12.at.10.18.05.AM.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions