JSFiddle - React, Tailwind, and code Playground

by Richard Ayotte

HTML

<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/dojo/1.10.1/dijit/themes/claro/claro.css">

JavaScript

require([
    'dijit/form/Select'
    , 'dojo/aspect'
], function (Select, aspect) {
    var myselect = new Select({
        name: 'myselect'
        , options: [{
            label: "TN",
            value: "Tennessee"
        }, {
            label: "VA",
            value: "Virginia",
            selected: true
        }, {
            label: "WA",
            value: "Washington"
        }, {
            label: "FL",
            value: "Florida"
        }, {
            label: "CA",
            value: "California"
        }]
    }).placeAt(document.body);
    
    aspect.around(myselect, 'closeDropDown', function(closeDropDown){
        return function(focus) {
            if (focus == false) {
                closeDropDown.apply(this, arguments);
            }
        }
    })
})