utchoang commented on a change in pull request #5809:
URL: https://github.com/apache/cloudstack/pull/5809#discussion_r774951616



##########
File path: ui/src/components/CheckBoxSelectPair.vue
##########
@@ -97,12 +96,21 @@ export default {
   data () {
     return {
       checked: false,
-      selectedOption: null
+      selectedOption: null,
+      selectOptionsTimer: null
     }
   },
   created () {
     this.checked = this.defaultCheckBoxValue
   },
+  watch: {
+    selectOptions () {
+      clearTimeout(this.selectOptionsTimer)
+      this.selectOptionsTimer = setTimeout(() => {
+        this.handleSelectOptionsUpdated()

Review comment:
       @shwstppr In my opinion, instead of changing the choice of options 
according to VPC, we can reset those options to null/blank to avoid repetition 
causing form crashes. What do you think?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to