Fixed select bug

This commit is contained in:
Luis Leiva 2019-07-22 16:39:42 +03:00
parent f645ced6da
commit eae7c86da5
1 changed files with 5 additions and 3 deletions

View File

@ -411,12 +411,14 @@
*/
function postProcess(elem, options) {
if (!options) options = elem.data(namespace).options;
var domEl = elem.get(0);
if (options.cssCursors) {
// Visually indicate whether this element is interactive or not.
elem[0].style.cursor = options.interactive ? 'pointer' : 'not-allowed';
domEl.style.cursor = options.interactive ? 'pointer' : 'not-allowed';
}
// Fix unwanted highlight "bug". Note: `this` is the actual DOM element.
this.onselectstart = function() {
// Fix unwanted highlight "bug".
domEl.onselectstart = function() {
return false;
};
};