Skip to content

When pressing enter to save, inline actions executes instead of saving #44

@tony

Description

@tony

Edit any normal field value and press Enter

It will run the first django inline action rather than save the form

I believe this is due to how input type "submit" works. It's before the save button (Unless I'm missing something?)

ideas:

  • Instead of using a button / form at all, Link to an action URL with a GET param of the object ID, redirect back to the model page with a notification message
  • Render buttons type="button" and have an onClick() handler:
    '<input type="submit" name="{}" value="{}" class="{}">'.format(
  • Find a way to move the submit-row higher in HTML (but visually keep it at the button of the page)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions