Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setNumber cant be edited on a event listener #1647

Closed
jgaviria77 opened this issue Jun 6, 2024 · 0 comments
Closed

setNumber cant be edited on a event listener #1647

jgaviria77 opened this issue Jun 6, 2024 · 0 comments

Comments

@jgaviria77
Copy link

jgaviria77 commented Jun 6, 2024

Plugin version

v23.0.10

Steps to reproduce

  1. send a variable from a js to a iframe with (
    frame.contentWindow.postMessage({call:'phone_number', value: "+573156614697"}, 'my twilio url');

)

  1. recieve the varible with
  window.addEventListener('message', function(event){
            var phone_value= event.data.value;
            phoneInput.setNumber(phone_value);

          });

Expected behaviour

this should set the set Number method with the variable that i'm sending

Actual behaviour

that just do nothing, and the input don't recieve my variable as input value.
i already check that the variable value (+573156614697) are getting received in my iframe correctly.

Initialisation options

setNumber Method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant