Skip to content

Submit label depends on schema and unused key #1086

@waitingallday

Description

@waitingallday

This is defaulting the analytics element_text to Submit which is probably right 99% of the time, but

  • FormKit schema doesn't use key
  • Doesn't check for components in the slot

props.schema?.find((field) => field?.key === 'actions')?.label || 'Submit'

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