[annotator-dev] Annotator closes in IE when using a dropdown

Randall Leeds randall at bleeds.info
Wed Nov 11 19:23:10 UTC 2015


Is the problem you're experiencing caused by the dropdown in any way or are
you just seeing a difference in when the pop-up is hidden in IE generally?

On Tue, Nov 3, 2015 at 7:41 AM Kristoffer Jälén <kristoffer.jalen at gmail.com>
wrote:

> I have a Annotator custom plugin that renders a select element inside the
> annotation when used together with the Store plugin. I use the mouse to
> select an option. In IE the annotation is closed as soon as I move the
> mouse. Chrome works fine (annotation stays visible).
>
> Annotator.Plugin.DropDown = function (element) {
>     var plugin = {};
>     plugin.pluginInit = function () {
>         this.annotator.viewer.addField({
>             load: function (field, annotation) {
>                 var htmlCode = '<select onChange="save(this, ' +
> annotation.id + ');">';
>                 htmlCode += '<option value="0">Option 0</option>';
>                 htmlCode += '<option value="1">Option 1</option>';
>                 htmlCode += '<option value="2">Option 2</option>';
>                 htmlCode += '</select>';
>                 field.innerHTML = htmlCode;
>             }
>         })
>     };
>     return plugin;
> }
> ...
> content.annotator('addPlugin', 'DropDown', {});
> _______________________________________________
> annotator-dev mailing list
> annotator-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/annotator-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/annotator-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/annotator-dev/attachments/20151111/a699009b/attachment-0004.html>


More information about the annotator-dev mailing list