JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/themes/smoothness/jquery-ui.css">
Deep cloning an input that has a UI datepicker doesn't work as expected.
<br>
Input 1:
<input>
JavaScript
var $input = $("input").datepicker(),
$clone = $input.clone(true).data( "datepicker", $.extend( true, {}, $input.data("datepicker") ) ).attr('id', 'test-id');
$clone.data('datepicker').input = $clone;
$clone.data('datepicker').id = 'test-id';
$("body").append("<br><br><br>Input 2: ").append(
$clone
);