Skip to content
This repository has been archived by the owner on Nov 22, 2021. It is now read-only.

Possibly unhandled rejection: undefined on onTagRemoving event #860

Open
gonzo09 opened this issue May 18, 2018 · 2 comments
Open

Possibly unhandled rejection: undefined on onTagRemoving event #860

gonzo09 opened this issue May 18, 2018 · 2 comments

Comments

@gonzo09
Copy link

gonzo09 commented May 18, 2018

Since update to angularjs 1.6 I have the folllowing error when using onTagRemoving event:

Possibly unhandled rejection: undefined

<tags-input required ng-model="flow.data.sources" display-property="displayInfo" placeholder="{{ 'FLOW_EDIT_SOURCES_PLACEHOLDER' | translate}}"
	add-from-autocomplete-only="true" replace-spaces-with-dashes="false" 
	on-tag-adding="flow.onTagAdding($tag,flow.data.destinations)" on-tag-added="flow.onTagAdded($tag,'source')" 
	on-tag-removing="flow.onTagRemoving($tag,'source')" on-tag-removed="flow.onTagRemoved()" 
	on-tag-clicked="flow.displayModal($tag)">
	<auto-complete source="flow.getFiltered($query)" min-length="2" display-property="displayInfo"></auto-complete>
</tags-input>

I have the error only when I return true from the onTagRemoving function, no problem when returning true.

Anyone else have issues since upgrade of angular ?

@ghost
Copy link

ghost commented Jun 21, 2018

Typo in my sentence:

I have the error only when I return true from the onTagRemoving function, no problem when returning false.

@fabioimpe
Copy link

any update on this? The same is happening to me even returning false

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

No branches or pull requests

2 participants