MCPcopy Index your code
hub / github.com/json-editor/json-editor / refreshValue

Method refreshValue

src/editors/string.js:341–348  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

339 }
340
341 refreshValue () {
342 if (!this.input) {
343 return
344 }
345 this.value = this.input.value
346 if (typeof this.value !== 'string' && !this.shouldBeUnset()) this.value = ''
347 this.serialized = this.value
348 }
349
350 destroy () {
351 if (this.cleave_instance) this.cleave_instance.destroy()

Callers 2

setValueMethod · 0.95
buildMethod · 0.95

Calls 1

shouldBeUnsetMethod · 0.95

Tested by

no test coverage detected