suren-atoyan / monaco-react

Monaco Editor for React - use the monaco-editor in any React application without needing to use webpack (or rollup/parcel/etc) configuration files / plugins

Home Page:https://monaco-react.surenatoyan.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OnValidate on getting called when monaco-editor is used as npm package

suniljaiswal01 opened this issue · comments

Describe the bug
I am trying to use monaco-editor as npm package as described here https://github.com/suren-atoyan/monaco-react#use-monaco-editor-as-an-npm-package

When is follow the above mentioned approach..the onValidate in Editor component is not getting called

To Reproduce

Expected behavior
On Validate should get called.

Screenshots

when using monaco-editor as npm package
image

when using via CDN
image

Desktop (please complete the following information):

  • OS: [e.g. iOS] iOS
  • Browser [e.g. chrome, safari] chrome
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.