JSFiddle - React, Tailwind, and code Playground

HTML

<form>
    <input type="radio" id="foo" />
    <label for="foo">
        <img src="http://placekitten.com/25/25" />
    </label>
</form>

JavaScript

$("label[for]").each(function () {

    var timeout;
    var element = $("#" + $(this).attr("for"));

    $(this).on("click", function () {
        timeout = setTimeout(function () {
            console.log("patched click");
            element.click();
        }, 100);
    });

    element.on("click", function () {
        clearTimeout(timeout);
    });

});