Skip to content
This repository was archived by the owner on Jan 15, 2024. It is now read-only.
This repository was archived by the owner on Jan 15, 2024. It is now read-only.

Undo function not working as expected #26

Description

@supriya-ck12

While using the iinkJS with Math recognition and image/png in the mime type, the undo functionality does not work as expected.

Steps to replicate the issue:

  1. Open the myScript editor
  2. Draw a number
  3. Click on undo button
  4. Redo button is still disabled.

Issue

When the first drawn element is removed using the undo button, the redo button is still in the disabled mode. Additionally, the result content is not cleared from the UI.

Reference code is taken from - https://github.com/MyScript/iinkJS/blob/master/examples/v4/websocket_math_iink.html
Demo link - https://codesandbox.io/s/myscript-image-issue-demo-7vh21l
Note: replace the server keys with the actual ones to view this behavior on the demo link (https://codesandbox.io/s/myscript-image-issue-demo-7vh21l?file=/index.html:197968-198084)

Screen recording

myScript.issue.mov

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions