JSFiddle - React, Tailwind, and code Playground
HTML
<div id="fixed_cct_us" style="right: 240px;"></div>
<div id="quick_cct_form">show hide</div>
JavaScript
$(document).on('mouseup', function (e) {
$("#quick_cct_form").hide();
$("#fixed_cct_us").css("right","-40px");
e.stopPropagation();
});