JSFiddle - React, Tailwind, and code Playground

by Сергій Куліков

HTML

<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/themes/smoothness/jquery-ui.css">
<div id="dialog" title="autofocus test"> <input type="text" /></div>

JavaScript

$.ui.dialog.prototype._focusTabbable = $.noop;
$.ui.dialog.prototype._focusTabbable = function(){this.uiDialog.eq(0).focus();};

$('input').datepicker();
$("#dialog").dialog();