소스 검색

fixed registerform loading bug

bach 4 년 전
부모
커밋
5ec39a5f0a
2개의 변경된 파일9개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 0
      web/themes/custom/materiotheme/assets/dist/main.js
  2. 9 2
      web/themes/custom/materiotheme/vuejs/components/Form/RegisterForm.vue

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
web/themes/custom/materiotheme/assets/dist/main.js


+ 9 - 2
web/themes/custom/materiotheme/vuejs/components/Form/RegisterForm.vue

@@ -43,12 +43,18 @@ export default {
           this.$options.staticRenderFns = [];
           this._staticTrees = [];
           this.form.staticRenderFns.map(fn => (this.$options.staticRenderFns.push(fn)));
+          this.initFormBehaviours()
         })
         .catch(( error ) => {
           console.warn('Issue with getRegisterForm', error)
         })
     },
+    initFormBehaviours(){
+      Drupal.attachBehaviors(this.$el)
+      this.checkSubmitEnabled()
+    },
     checkSubmitEnabled () {
+      console.log("checkSubmitEnabled", this);
       if(this.ps === 'Strong'){
         this.$refs.register.disabled = false
       }else{
@@ -84,8 +90,9 @@ export default {
   },
   mounted(){
     // console.log('LoginBlock mounted');
-    Drupal.attachBehaviors(this.$el);
-    this.checkSubmitEnabled()
+    if(this.form){
+      this.initForm()
+    }
   },
   render(h) {
     // console.log('LoginBlock render');

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.