Skip to content

Prevent resetting the cursor of the editor

What does this MR do?

When values change in the editor lite, they are first passed to the upper component with an input event and then passed down to editor for updating.

As this update may not change the content, and only the cursor position, we should not change the editor's state when the value does not change

Screenshots

Before header
2020-10-19_15.50.02 2020-10-19_15.50.53

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Related to #270095 (closed)

Merge request reports