Secretmapper / react-image-annotation

An infinitely customizable image annotation library built on React
https://secretmapper.github.io/react-image-annotation/
MIT License
329 stars 135 forks source link

disableEditor true buggy #9

Closed HRK44 closed 5 years ago

HRK44 commented 6 years ago

When I use disableEditor={true}, I guess it works like intended (doesn't show the editor) BUT I can't 'validate' the selection anymore since there is no 'submit'.

Is this intended behavior, or is it a bug? From an user perspective, what I think when I disable the editor, is that the selection is automatically validated upon mouse release.

Thanks

Secretmapper commented 5 years ago

Sorry for the late reply! Yes this is intended behavior - the only thing it would do is it disables the editor.

To achieve something like this (auto submit), pass a component in renderEditor that calls onSubmit on mount.