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

Function onChange

packages/decap-cms-widget-file/src/withFileControl.js:299–302  ·  view source on GitHub ↗
(mediaPath && mediaPath === value)

Source from the content-addressed store, hash-verified

297 const mediaPath = mediaPaths.get(this.controlID);
298 if (mediaPath && mediaPath !== value) {
299 onChange(mediaPath);
300 } else if (mediaPath && mediaPath === value) {
301 onRemoveInsertedMedia(this.controlID);
302 }
303 }
304
305 componentWillUnmount() {

Callers 15

handleChangeFunction · 0.85
handleChangeFunction · 0.85
NumberControl.jsFile · 0.85
EditorNotesPane.jsFile · 0.85
handleChangeFunction · 0.85
handleChangeFunction · 0.85
ListControl.jsFile · 0.85
handleChangeForFunction · 0.85
handleToggleFunction · 0.85
DateTimeControl.jsFile · 0.85
componentDidMountMethod · 0.85
SettingsPane.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected