Make sure value is set before using it

This commit is contained in:
Hadi Nategh 2018-11-06 16:31:17 +01:00
parent bb60ddd040
commit 48ad4f6d25

View File

@ -142,7 +142,7 @@ var et2_radiobox = (function(){ "use strict"; return et2_inputWidget.extend(
}
}, this, et2_radiobox);
return val.indexOf(values) ? val : null;
return val && val.indexOf(values) ? val : null;
},
/**