You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi, guys
some types such as text, textarea not work under the newest version.
the 0.2.0-alpha.9 is ok, but 0.2.0-alpha.10 will not work as expected.
try and change the version in config.js https://embed.plnkr.co/GfGHaUdbPWyg7xBmN4vg/
P.S. something might help
I reviewed your code, it seems the problem is the newest version refactored file input-base.ts, the constructor get state through InlineEditorService's getState() method, getState() returns cloned state which have property value of null, so the showText() method of input-base.ts would always render this.state.getState().value of value null
// InputBase constructorthis.state=this.service.getState().clone();this.value=this.state.getState().value;// InlineEditorService --> get state asyncconstructor(publicevents: Events,publicconfig?: InlineConfig,){this.subscriptions.onUpdateStateSubscription=this.onUpdateStateOfService.subscribe((state: InlineEditorState)=>this.state=state,);}// the getState() method of InlineEditorServicepublicgetState(): InlineEditorState{returnthis.state.clone();}// InputBase methodpublicshowText(): string {returnthis.state.isEmpty() ? this.config.empty : this.state.getState().value;}
The text was updated successfully, but these errors were encountered:
hi, guys
some types such as
text
,textarea
not work under the newest version.the
0.2.0-alpha.9
is ok, but0.2.0-alpha.10
will not work as expected.try and change the version in config.js
https://embed.plnkr.co/GfGHaUdbPWyg7xBmN4vg/
P.S. something might help
I reviewed your code, it seems the problem is the newest version refactored file
input-base.ts
, the constructor get state through InlineEditorService's getState() method, getState() returns cloned state which have propertyvalue
of null, so theshowText()
method ofinput-base.ts
would always renderthis.state.getState().value
of value nullThe text was updated successfully, but these errors were encountered: