vue-masked-input icon indicating copy to clipboard operation
vue-masked-input copied to clipboard

IE 11 support

Open hekan opened this issue 7 years ago • 5 comments

Guys, is ie 11 supported? When I use phone mask it outputs ERROR string instead of mask in ie11

hekan avatar Nov 13 '17 20:11 hekan

in IE, firefox doesn't work

liujianglc avatar Dec 04 '17 02:12 liujianglc

You're probably missing babel-polyfill for Array.from

sasin91 avatar Jan 10 '18 16:01 sasin91

It works in IE11 but there are cosmetic issues. I dont want to open a separate issue. The underlining that shows the mask format sometimes disappear completely and comes back after you move focus to another control then back to mask control and then back to another control. Even then, sometimes it comes back sometimes it doesn't.

trsiddiqui avatar May 30 '18 20:05 trsiddiqui

I have the problem with IE11 regarding pasting any data from the clipboard.

shkigor avatar Jun 11 '18 06:06 shkigor

You need to transpile it with babel yourself to support IE11.

If you are using babel already, but with the useBuiltIns: 'usage' option rather then pulling all of the available polyfills into the bundle, then you need to add the path to the library in the rule that processes stuff for the babel loader.

It should look something like this:

                {
                    test: /\.(js)$/,
                    include: [
                        resolvePath('./src'),
                        /*
                         * Vue-masked-input does not support IE11 out of the box (has Array.from)
                         * see: https://github.com/niksmr/vue-masked-input/issues/36
                         */
                        resolvePath(./'node_modules/vue-masked-input'),
                    ],
                    use: [
                        {
                            loader: 'babel-loader',
                        },
                    ],
                },

ReinisV avatar Aug 28 '19 10:08 ReinisV