MCPcopy
hub / github.com/react-component/form / getValueFromEvent

Function getValueFromEvent

src/utils.js:90–97  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

88}
89
90export function getValueFromEvent(e) {
91 // To support custom element
92 if (!e || !e.target) {
93 return e;
94 }
95 const { target } = e;
96 return target.type === 'checkbox' ? target.checked : target.value;
97}
98
99export function getErrorStrs(errors) {
100 if (errors) {

Callers 1

onCollectCommonFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected