react-nodegui icon indicating copy to clipboard operation
react-nodegui copied to clipboard

Error when store state value from PlainTextEdit

Open kriptonhaz opened this issue 4 years ago • 0 comments

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

kriptonhaz avatar Jul 01 '21 14:07 kriptonhaz