nodegui / react-nodegui

Build performant, native and cross-platform desktop applications with native React + powerful CSS like styling.🚀
https://react.nodegui.org
MIT License
6.18k stars 171 forks source link

Error when store state value from PlainTextEdit #350

Open kriptonhaz opened 3 years ago

kriptonhaz commented 3 years ago

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):