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

Problem with select2 multiple-select on Safari #753

Open
tmconnect opened this issue Jul 15, 2017 · 12 comments
Open

Problem with select2 multiple-select on Safari #753

tmconnect opened this issue Jul 15, 2017 · 12 comments

Comments

@tmconnect
Copy link

On Safari (10.1.1) the post_select field doesn't work correctly. Entering the field drops down the notice "Please enter 1 or more characters" but I'm not able to enter anything.

Tested with Chrome it works as expected.

Any ideas?

@szepeviktor
Copy link
Collaborator

Does https://select2.github.io/examples.html work?

@tmconnect
Copy link
Author

Yes and other select2 fields (e.g. from ACF) working as well.

But it is no conflict with other plugins. Tried it with only Shortcode UI 0.7.2 activated.

@szepeviktor
Copy link
Collaborator

define( ‘SELECT2_NOCONFLICT’, true ); ?

@tmconnect
Copy link
Author

Excuse me, I could have mentioned - yes it's set

@szepeviktor
Copy link
Collaborator

Possible browser console messages?

@tmconnect
Copy link
Author

No, nothing. No console messages, no debug messages...

@szepeviktor
Copy link
Collaborator

Could you inspect the event on the Select2 drop-down?

select2-event

@tmconnect
Copy link
Author

Sure, but I see that I got some click events that I don't see on you screenshot. And I see that you use a single-select field and I'm a multiple-select field.

firefox_screen_001

I tested the single-select and it worked. But the multiple-select doesn't.

@szepeviktor szepeviktor changed the title Problem with select2 on Safari Problem with select2 multiple-select on Safari Jul 15, 2017
@nicoladj77
Copy link

I have an issue when I have multiple select2 for Posts select on chrome. @tmconnect is the same issue you are mentioning?
image

@tmconnect
Copy link
Author

@nicoladj77 No, I have only one select field that is set to select multiple posts and I can't input any text in the search field.

@scheurta
Copy link

scheurta commented Oct 5, 2017

The issue (for me) is that the select2 input field select2-search__field has an inline style with width: 0px;. The issue disappears when I set a min-width for that input field in the .edit-shortcode-form

Example code:

add_action( 'admin_head', function() {
	?>
	<style>
		.edit-shortcode-form input.select2-search__field {
			min-width: 50px;
		}
	</style>
	<?php
});

I'm using version 0.7.2, I'm not sure if this is fixed in 0.7.3.

@pySilver
Copy link

@nicoladj77 thats an issue with css:

// Select2 Fix
.edit-shortcode-form .select2-container {
  z-index: auto;
}

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

5 participants