Sfoglia il codice sorgente

dont rerender calendar on constraint-related options

Adam Shaw 8 anni fa
parent
commit
33ff8edc2c
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      src/OptionsManager.ts

+ 2 - 0
src/OptionsManager.ts

@@ -43,6 +43,8 @@ export default class OptionsManager extends Model {
         return // can't change date this way. use gotoDate instead
         return // can't change date this way. use gotoDate instead
       } else if (optionName === 'businessHours') {
       } else if (optionName === 'businessHours') {
         return // this model already reacts to this
         return // this model already reacts to this
+      } else if (/^(event|select)(Overlap|Constraint|Allow)$/.test(optionName)) {
+        return // doesn't affect rendering. only interactions.
       } else if (optionName === 'timezone') {
       } else if (optionName === 'timezone') {
         this._calendar.view.flash('initialEvents')
         this._calendar.view.flash('initialEvents')
         return
         return