• kishan88666

    (@kishan88666)


    We are using your plugin with the latest version on our website, using the shortcode [mcwp type="cv"]. However, we’ve encountered an issue where the cursor jumps every time we try to change the Purchase Price input value. When using the keyboard left or right arrow keys, the cursor is not allowed to move in between the price value.

    Video Link: Link to Video

    Upon inspecting the JS code in the assets/js/wpmc.js file, we found that there is an extra line of code $(this).val(purchase_price); which seems to be causing the issue. This line resets the input value, preventing the arrow keys from moving the cursor.

    $parent.find(“#inp_purchase_price”).keyup(function() {
    purchase_price = $(this).val() == “” ? 0 : $(this).val();
    purchase_price = removeco(purchase_price);
    down_payment = (purchase_price * down_payment_percent) / 100;
    $(“#down_payment_inp”, $parent).val(addCommas(down_payment));
    $(this).val(purchase_price); // This line causes the issue
    $(this).val(function(index, value) {
    return value
    .replace(/\D/g, “”)
    .replace(/\B(?=(\d{3})+(?!\d))/g, “,”);
    });
    mortgage_calc($parent);
    });

    Removing this line resolves the issue, but since we cannot directly edit the plugin file, could you please provide a solution to fix this problem?

  • The topic ‘Issue with Cursor Jumping When Editing Purchase Price Input Value’ is closed to new replies.