2019-01-29 12:15:46 +03:00
|
|
|
import $ from 'jquery'
|
2016-11-25 18:42:53 +03:00
|
|
|
|
|
|
|
// Set autocomplete width the same as the related input
|
|
|
|
// See http://stackoverflow.com/a/11845718
|
2019-01-29 12:15:46 +03:00
|
|
|
$.ui.autocomplete.prototype._resizeMenu = function () {
|
2016-11-25 18:42:53 +03:00
|
|
|
var ul = this.menu.element;
|
|
|
|
ul.outerWidth(this.element.outerWidth());
|
2017-05-01 06:42:53 +03:00
|
|
|
};
|