Disable the div selection when diagram is active