Skip to content

Fix: button type should set to button #64

@masoud-c

Description

@masoud-c

in AnnoButton.prototype.buttonElem you should do a little fixation:

return $("<button type='button' class='anno-btn'></button>").html(this.textFn(anno)).addClass(this.className).click((function(_this) { return function(evt) { return _this.click.call(anno, anno, evt); }; })(this));

it should be like this, otherwise it submit the form when click next or done

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions