JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="http://www.jeasyui.com/easyui/themes/default/easyui.css">
<script src="http://www.jeasyui.com/easyui/jquery.min.js"></script>
<script src="http://www.jeasyui.com/easyui/jquery.easyui.min.js"></script>
<input id="eui" style="width:200px">

CSS

.combobox-group {
  color: #08c;
  border-top:1px dotted #DDDDDD;
} .combobox-group.active {
  background: inherit;
  position: absolute;
  top: 0;
  width: 180px;
  border-bottom: 1px solid #DDDDDD;
}

JavaScript

$.extend($.fn.combobox.methods, {
  sticky: function(cbo){
    cbo.combobox('panel').on('scroll',function(){
      var pan=$(this), top=pan.scrollTop(), grps=pan.find('.combobox-group');
      $.each(grps,function(idx){
        var row=$(this);
        if(row.position().top < 8) {
          grps.not(row).removeClass('active');
          row.addClass('active');
        }
      });
    })   
  }
})

$('#eui').combobox({
	panelHeight:'100px',
  groupField:'group',
  data:[{
	"value":"f20",
	"text":"Firefox 2.0 or higher",
	"group":"Firefox"
},{
	"value":"f15",
	"text":"Firefox 1.5.x",
	"group":"Firefox"
},{
	"value":"f10",
	"text":"Firefox 1.0.x",
	"group":"Firefox"
},{
	"value":"ie7",
	"text":"Microsoft Internet Explorer 7.0 or higher",
	"group":"Microsoft Internet Explorer"
},{
	"value":"ie6",
	"text":"Microsoft Internet Explorer 6.x",
	"group":"Microsoft Internet Explorer"
},{
	"value":"ie5",
	"text":"Microsoft Internet Explorer 5.x",
	"group":"Microsoft Internet Explorer"
},{
	"value":"ie4",
	"text":"Microsoft Internet Explorer 4.x",
	"group":"Microsoft Internet Explorer"
},{
	"value":"op9",
	"text":"Opera 9.0 or higher",
	"group":"Opera"
},{
	"value":"op8",
	"text":"Opera 8.x",
	"group":"Opera"
},{
	"value":"op7",
	"text":"Opera 7.x",
	"group":"Opera"
},{
	"value":"Safari",
	"text":"Safari"
},{
	"value":"Other",
	"text":"Other"
}]
 }).combobox('sticky');