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
Proposal would be, if a function is passed to this.props.on{Blur,KeyUp,KeyDown}, pass (event: React.SyntheticEvent<any>, emitChange(originalEvt: React.SyntheticEvent<any>) => void) to the prop, this way, they could still run emitChange(event) if they want.
I don't think this would be possible due to the underlying typings of on{Blur,KeyUp,KeyDown}
react-contenteditable/src/react-contenteditable.tsx
Lines 48 to 52 in a7f6c78
emitChange
triggersonChange
, which sends up a typed event withevent.target.value
attachedIn my case,
onBlur
,onKeyUp
,onKeyDown
aren't used to change state, but to toggle CSS classes.The text was updated successfully, but these errors were encountered: