Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • I propose updating the event trigger from change to blur to enhance the user experience and improve the precision of the value formatting workflow. While the change event captures updates to the input field, it can trigger prematurely in some cases, such as when users are still editing or interacting with the field programmatically.

    Switching to the blur event would ensure that the formatting and subsequent actions are executed only after the user explicitly moves focus away from the input field. This adjustment could provide the following benefits:

    1. Better Alignment with User Intent: Ensures that the formatting process occurs only after the user has finished editing the input.
    2. Fewer Redundant Updates: Reduces unnecessary formatting or event triggers during active editing.
    3. Enhanced Consistency: Follows common UI/UX patterns where data validation and formatting happen upon leaving a field.

    This change would help create a smoother, more intuitive experience for users while maintaining robust data handling.

    Code bellow:

    $input.on(‘blur’, function() {
    const val = parseFloat($input.val()) || 0;
    $input.val(val.toFixed(woonp_vars.price_decimals)).trigger(‘change’);
    });

    Thread Starter dinarde

    (@dinarde)

    Hi @nextend_ramona

    Congrats. The issue was solved.
    Thanks for the agility in solving the problem.

    Best regards

    Thread Starter dinarde

    (@dinarde)

    Just to make it clearer. I create an HTML popup and place the shortcode of the smart builder. Then before updating the plugin, it appeared normal, after I updated the Smart Slider, started to display only one blank square.

    Thread Starter dinarde

    (@dinarde)

    Hi @nextend_ramona!
    Yes. This is the plugin.
    I did some testing, but I did not go into the root cause of the problem.
    Thanks for the feedback

Viewing 4 replies - 1 through 4 (of 4 total)