Skip to content

Commit

Permalink
3.0.5 release
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Jul 20, 2018
1 parent 48e1212 commit 7351da8
Show file tree
Hide file tree
Showing 40 changed files with 647 additions and 582 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

# Change Log

# [v3.0.5](https://github.com/framework7io/framework7/compare/v3.0.1...v3.0.5) - July 20, 2018
* Core
* Calendar
* Added support for Jalali calendar, can be enabled with `calendarType: 'jalali'`
* New `rangePickerMinDays` and `rangePickerMaxDays` to require min/max days when range picker enabled
* Tooltip
* Fixed issue when tooltip wasn't fully hidden on touch devices
* Router
* `routeChanged` event will also work for routable tabs now
* Phenome
* Fixed not working `readonly` prop in `f7-input` Vue component
* Minor fixes

# [v3.0.1](https://github.com/framework7io/framework7/compare/v3.0.0...v3.0.1) - July 10, 2018
* Phenome
* Fixed `TypeError` error in `ActionsGroup` component
Expand Down
10 changes: 9 additions & 1 deletion packages/core/components/autocomplete/autocomplete-class.js
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ class Autocomplete extends Framework7Class {
const ac = this;
if (ac.params.renderItem) return ac.params.renderItem.call(ac, item, index);
let itemHtml;
const itemValue = item.value ? item.value.replace(/"/g, '"') : item.value;
const itemValue = item.value && typeof item.value === 'string' ? item.value.replace(/"/g, '"') : item.value;
if (ac.params.openIn !== 'dropdown') {
itemHtml = `
<li>
Expand Down Expand Up @@ -617,6 +617,14 @@ class Autocomplete extends Framework7Class {
ac.emit('local::open autocompleteOpen', ac);
}

autoFocus() {
const ac = this;
if (ac.searchbar && ac.searchbar.$inputEl) {
ac.searchbar.$inputEl.focus();
}
return ac;
}

onOpened() {
const ac = this;
if (ac.params.openIn !== 'dropdown' && ac.params.autoFocus) {
Expand Down
Loading

0 comments on commit 7351da8

Please sign in to comment.