Bugfix for hidden refs (#1418)
This commit is contained in:
parent
0a25859255
commit
5eeb560238
@ -383,6 +383,9 @@ export const preventDefault = (event) => {
|
|||||||
* @returns The value.
|
* @returns The value.
|
||||||
*/
|
*/
|
||||||
export const getRefValue = (ref) => {
|
export const getRefValue = (ref) => {
|
||||||
|
if (!ref || !ref.current){
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (ref.current.type == "checkbox") {
|
if (ref.current.type == "checkbox") {
|
||||||
return ref.current.checked;
|
return ref.current.checked;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user