Skip to content

Add configuration option to disable DOM morphing #213

Description

@tcannonfodder

Describe Problem

While I do appreciate the default behavior of using DOM morphing on to render form errors, it would be great to be able to disable it at both the element level using data- attributes, and library-wide. It's actually causing a FOUC with my font-awesome icons. I also don't want to add Turbo to my project, because it mucks around with the DOM & navigation flow too much for my liking

Suggest Solution

2 configuration options that stop calling morphResponse:

  • data-skip-ujs-morph
  • a disableErrorRenderer: true flag in mrujs.start

Additional Details

👋 Thanks for this library, I'm glad folks are carrying the torch of UJS!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions