JSFiddle - React, Tailwind, and code Playground

JavaScript

$.ui.selectmenu.prototype._setSelection = function( ) {
    var selection;
    
    if ( !this.range ) {
        return;
    }
    
    if ( window.getSelection ) {
        selection = window.getSelection();
        selection.removeAllRanges();
        selection.addRange( this.range );
    } else {
        // support: IE8
        this.range.select();
        
        // support: IE
        // Setting the text selection kills the button focus in IE, but
        // restoring the focus doesn't kill the selection.
        this.button.focus();
    }
};