S
S
sergo5732022-01-21 12:49:47
WordPress
sergo573, 2022-01-21 12:49:47

How to make two plugins friends with Inputmask?

Hello, the site has a plugin installed: Ninja Forms , it has a phone number mask.
I wanted to make a mask when entering data in a woocommerce order, I installed the plugin: Masks Form Fields .
Everything works fine, but in the console an error is displayed:

Uncaught TypeError: n.split is not a function
    at S.fn.init.mask (front-end--inputmask.min.js?ver=3.6.7:5:1254)
    at HTMLDocument.<anonymous> (scripts.js?ver=1.8:18:26)
    at e (jquery.min.js:2:30038)
    at t (jquery.min.js:2:30340)


I suppose, because of loading the same inputmask scripts, in general, how to make them friends so that there would be no errors in the console?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Petermann, 2022-01-25
@sergo573

Hi,
Fixed conflict in version 1.9. Please update the plugin Masks Form Fields and test again.

V
Vladimir, 2022-01-23
@Voffkam

Perhaps the problem is in jQuery, where there are conflicts.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question