UNPKG

350 BJavaScriptView Raw
1class Util {
2 findValidatorGroup(component) {
3 if(!component.$parent) {
4 // Something went wrong, no parent found or properties have changed in vue.
5 return;
6 }
7 if(component.$parent.isValidatorGroup) {
8 return component.$parent;
9 }
10 return this.findValidatorGroup(component.$parent);
11 }
12}
13
14export default new Util();