-
Notifications
You must be signed in to change notification settings - Fork 75
Open
Description
When i try to use this plugin in a modal, the menu is not showing in the correct position. I think this is caused by
show: function () {
var pos = this.$element.position();
var height = this.$element[0].offsetHeight;
this.$menu
.appendTo('body')
.show()
.css({
position: "absolute",
top: pos.top + height + "px",
left: pos.left + "px"
});
this.shown = true
return this
}
in the show function it appends the menu to body (??)
it is originally
.insertAfter(this.$element)
in typeahead plugin. In my tests changing that line fixes the incorrect positioning problem of the menu
Metadata
Metadata
Assignees
Labels
No labels