mercadolibre / chico

A collection of easy-to-use UI components.
http://chico.mercadolibre.com
MIT License
342 stars 91 forks source link

Autocomplete.js: Position property in configuration object not used #1217

Open marcoscaceres26 opened 9 years ago

marcoscaceres26 commented 9 years ago

The position property value is not being passed to the positioner (position is always set to 'absolute' despite being set as 'fixed' in the configuration object).

As a temporal fix is possible to use in the implementation:

var autocomplete = new ch.Autocomplete(settings.$searchInput, { 'position': 'fixed' });

autocomplete.on('ready', function (e){ this._popover.$container.css('position', this._options.position); });