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

Selectmarker doesn't work #8

Open
Znarf85 opened this issue May 5, 2018 · 0 comments
Open

Selectmarker doesn't work #8

Znarf85 opened this issue May 5, 2018 · 0 comments

Comments

@Znarf85
Copy link

Znarf85 commented May 5, 2018

Hi,

I installed the mediapicker and the callback works like a charm.
But the selectmarker doesn't work. If I click on an image, nothing happens.

I found a little workaround. If I delete this two lines in the code, the marker appears after a click.

// Empties state-arrays after callback:
this.setState({selected: []})
this.setState({selectedItems: []})

But this works only for one picture at a time.
If I click another one, the marker switched to the new picture and disappear from the old.

Is there a solution so it will work like on the demo-gif again?

Thanks and best regards

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

1 participant