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

Can't remove chips? #6204

Open
silas229 opened this issue Nov 10, 2018 · 4 comments
Open

Can't remove chips? #6204

silas229 opened this issue Nov 10, 2018 · 4 comments

Comments

@silas229
Copy link

Hi,
I can't remove my chips.

Expected Behavior

Chip is removed when clicked
bs3r5v

Current Behavior

Chip isn't removed when clicked
gyr00b

Possible Solution

idfk

Steps to Reproduce (for bugs)

Chip init:

$('.mannschaften').chips({
	autocompleteOptions: {
		data: {
			'G-Jugend': null,
			'F-Jugend': null,
			'E-Jugend': null,
			'D-Jugend': null,
			'C-Jugend': null,
			'B-Jugend': null,
			'A-Jugend': null,
			'Herren': null,
			'1. Herren': null,
			'2. Herren': null,
			'3. Herren': null,
			'Alte Herren': null,
			'Damen': null,
			'1. Damen': null,
			'2. Damen': null,
			'3. Damen': null,
			'Alte Damen': null
		},
		limit: 3,
		minLength: 1
	},
	placeholder: 'Mannschaft hinzufügen',
	secondaryPlaceholder: 'Weitere Mannschaft hinzufügen',
	data: [
		{tag: 'admin'},
		{tag: 'hi'},
		{tag: 'test'}
	]
});

Your Environment

  • Version used: 1.0.0
  • Browser Name and version: Chrome 70
  • Operating System and version (desktop or mobile): Windows 10
@silas229
Copy link
Author

Another strange behaviour:
rgxgar

@acburst
Copy link
Collaborator

acburst commented Nov 13, 2018

I used your init code locally and can't seem to reproduce this. Can you try making a codepen reproducing the bug?

@silas229
Copy link
Author

Strangely enough, I can't reproduce it either, but the data attribute doesn't work for me either: https://codepen.io/Silas_229/pen/Jeprze?editors=1010

@fatbeard2
Copy link

I had similar issue. I found out that it was because there was a label element in front of all the chips. And events are delegated to chips by index. So extra element was messing with indexes

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

3 participants