MCPcopy Create free account
hub / github.com/decaporg/decap-cms / handleChange

Function handleChange

packages/decap-cms-widget-code/src/CodeControl.js:246–251  ·  view source on GitHub ↗
(newValue)

Source from the content-addressed store, hash-verified

244 }
245
246 handleChange(newValue) {
247 const cursor = this.cm.doc.getCursor();
248 const selections = this.cm.doc.listSelections();
249 this.setState({ lastKnownValue: newValue });
250 this.props.onChange(this.toValue('code', newValue), { cursor, selections });
251 }
252
253 showSettings = () => {
254 this.setState({ settingsVisible: true });

Callers 1

DateTimeControl.jsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected