We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using these two configurations I get an JS error in the console: Uncaught TypeError: data.value.split is not a function
Uncaught TypeError: data.value.split is not a function
[ 'label' => esc_html__( 'Zoom', 'static-map' ), 'attr' => 'zoom', 'type' => 'select', 'options' => range( 1, 22 ), ], [ 'label' => esc_html__( 'Zoom', 'static-map' ), 'attr' => 'zoom', 'type' => 'select', 'options' => array_combine( range( 0, 22 ), range( 0, 22 ) ), ],
The reason for this is that the data.value has a typeof number instead of string in these cases.
data.value
typeof
If I change the code to the following it works fine.
[ 'label' => esc_html__( 'Zoom', 'static-map' ), 'attr' => 'zoom', 'type' => 'select', 'options' => array_combine( range( 1, 22 ), range( 1, 22 ) ), ],
Related change #745
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When using these two configurations I get an JS error in the console:
Uncaught TypeError: data.value.split is not a function
The reason for this is that the
data.value
has atypeof
number instead of string in these cases.If I change the code to the following it works fine.
Related change #745
The text was updated successfully, but these errors were encountered: