# Summary

Integrates Drupal autocomplete and select fields with the Select2 jQuery library. Really the only accessible replacement for select elements.

# Project URL

https://www.drupal.org/project/select2

# Where is the code?

Unknown

# Estimated completion date

Unknown

# Dependencies

None

# Who's doing the port?

Port available in Thunder distribution, see #2803715: Port to D8

# What help do they need?

Unknown

# D8 roadmap

Unknown

# Background and reference information

Port available in Thunder distribution, see #2803715: Port to D8

Comments

dalin created an issue. See original summary.

dalin’s picture

jdleonard’s picture

anybody’s picture

Just my 2 cents from our experience... which might be useful to consider: We used https://www.drupal.org/project/jquery_ui_multiselect_widget for a long period of time in many Drupal 7 projects. It was quite OK and we made it responsive with some tricks. Somehow it doesn't allow tagging and is not a replacement for Chosen.

So for D8 we switched over to Select2 and the non-responsiveness is just horrible and I don't see good solutions currently. See issues like this: https://github.com/select2/select2/issues/3278
So Select2 is no more an option for us, because responsiveness + good UX is no more discussable.

Perhaps https://github.com/Mobius1/Selectr (discussion for responsive / touch UI: https://github.com/Mobius1/Selectr/issues/14) might be a better alternative for Drupal (Core) but it also doesn't behave well in responsiveness. The box simply grows line by line... best would be a selective combination from Select2 / selectr and jquery_ui_multiselect_widget by usecase... Chosen is even older...

Any other experiences for a perfect select widget solution? I think they must exist out there... :)

alphawebgroup’s picture

anybody’s picture

@alphawebgroup: Yes that's really perfect! Better than the other ones and solves the problems named in #4. How can we proceed here?

geek-merlin’s picture

Ping the 2 maintainers and report back here!

(EDIT: Ups, wrong issue i suppose.)

mmjvb’s picture

Not sure how that relates to the port of select2. Suggest to finish your sandbox sumoselect and promote it, next create an issue for replacing select2 in autocomplete.

Looks like there is no ambition to port select2, so once sumoselect is released it can be offered as alternative. This issue could then be closed as duplicate, making it clear it is superseded. Unless someone is going to port it in the mean time, of course.

alphawebgroup’s picture

@Anybody @mmjvb
ok, Guys
let's see how it'll go...

hanness’s picture

There is a Sumoselect dev release from axel.rutz now which is working well as form widget and filter.

steffenr’s picture

The guys from thunder recently created the https://github.com/thunder/select2/ repo for drupal 8.
Right now the module is working fine for me and the guys keep on pushing it.

There is also some discussion on adding the work done in this repo as the 8.x branch of the original select2 module.
https://www.drupal.org/project/select2/issues/2803715#comment-12679700

anybody’s picture

Thank you @SteffenR. That looks quite promising. We should then compare it to https://www.drupal.org/project/sumoselect once it's finished.

mmjvb’s picture

Issue summary: View changes
mmjvb’s picture

Status: Active » Needs work
chr.fritsch’s picture

We are making a lot of progress in https://github.com/thunder/select2/. I added a whole bunch of tests recently and we will integrate the select2 module into our Thunder distribution as soon as we have the select2 namespace on d.o.

I hope I will be able to push the code to d.o. next week.

chr.fritsch’s picture

Status: Needs work » Fixed

I finally pushed the first beta of the select2 port for Drupal 8.

So marking this as fixed.

mmjvb’s picture

Status: Fixed » Needs review

With a beta, Status should be Needs review.

Fixed is for a Stable release!

chr.fritsch’s picture

Status: Needs review » Fixed

I just pushed select2 1.0

So I am marking this as fixed now.

avpaderno’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.