Blame view
imports/modules/get-input-value.js
161 Bytes
f0c912bf1
|
1 2 |
export const getInputValue = (component, ref, nested) => { const element = component.refs[ref]; |
7df77f0fa
|
3 |
return nested ? element.refs.input.value : element.value; |
f0c912bf1
|
4 |
}; |