aFarkas / webshim

[DEPRECATED] Webshims Lib is a modular capability-based polyfill-loading library
http://aFarkas.github.com/webshim/demos/index.html
MIT License
1.42k stars 201 forks source link

Only work once on firefox using Angular #581

Open luizluan opened 7 years ago

luizluan commented 7 years ago

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

Weksley commented 7 years ago

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();

supratim3 commented 6 years ago

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