niuware / mui-rte

Material-UI Rich Text Editor and Viewer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ref without save()

saintego opened this issue · comments

commented

Checklist

Description

Ref save() is not there while using dynamic import in next.js. I'm getting error Uncaught TypeError: _ref$current.save is not a function at handleClick... using https://github.com/niuware/mui-rte/blob/master/examples/ref-save/index.tsx
ref contains only retry()

commented

It works if I use dynamic import on component that use mui-rte and import mui-rte normally