webshim icon indicating copy to clipboard operation
webshim copied to clipboard

Only work once on firefox using Angular

Open luizluan opened this issue 9 years ago • 2 comments

It only works once, I open the modal the inputs appear correctly (date), then I close the modal and open again the inputs do not work as they should, no error appears in the javascript just a css error but i think is not this.

I using C# MVC asp.net

$(document).ready(function () { webshim.activeLang(navigator.language); webshims.setOptions('waitReady', false); webshims.setOptions('forms-ext', { types: 'date' }); webshims.polyfill('forms forms-ext');

    $('input:invalid').each(function () {
        $(this).after($.prop(this, 'validationMessage'));
    });
});

My application is SPA

luizluan avatar Jan 19 '17 14:01 luizluan

You will need to update fields after you load it. run this on the bottom of the page that content the date field. $("input[type=date]").updatePolyfill();

Weksley avatar Feb 11 '17 18:02 Weksley

We have the exact same issue. Using the trick mentioned by Weksley breaks the page alignment.

supratim3 avatar Dec 01 '17 01:12 supratim3