Added code for preventSelection property.