Skip to content

Error when store state value from PlainTextEdit #350

Description

@kriptonhaz

Describe the bug
When trying to setState the value from PlainTextEdit it's always get an error after second keystrokes. The error shown like this

libc++abi.dylib: terminating with uncaught exception of type Napi::Error: Cannot read property 'toPlainText' of null

To Reproduce
Steps to reproduce the behavior:

  1. Follow the documentation for PlainTextEdit in here https://react.nodegui.org/docs/api/interfaces/plaintexteditprops/
  2. Change console.log into any setState hooks
  3. See error

Expected behavior
Value from PlainTextEdit can stored in the state

Desktop (please complete the following information):

  • OS: Mac OS
  • React NodeGUI version 0.10.2"
  • OS Version 10.15.7

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