Disable the div selection when diagram is active

How one can disable the (blue) border which gets displayed when the diagram div is active.
(when when clicks on empty area in diagram, then the div gets highlighted with blue border. How to avoid that ?