1 | class 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 |
|
14 | export default new Util();
|