JSFiddle - React, Tailwind, and code Playground
HTML
<div class="draggable">
<input type="text" value="drag me!" />
</div>
CSS
.draggable {
height:500px;
width:500px;
background:blue;
}
JavaScript
$('.draggable').draggable({
cancel: null
});
$('.draggable input').click(function() {
$(this).focus();
});