Skip to content

Commit

Permalink
5.4.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Feb 8, 2020
1 parent 0b9f18a commit f01af83
Show file tree
Hide file tree
Showing 82 changed files with 435 additions and 186 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@

# Change Log

# [v5.4.1](https://github.com/framework7io/framework7/compare/v5.4.0...v5.4.1) - February 8, 2020
* Core
* Touch
* Fully switch to `pointer` events where supported
* Tooltip
* New `trigger` parameter to define how to open Tooltip - on `hover` (default) or on `click`
* Swiper - updated to latest 5.3.1
* Fixed issue when slider could stuck after last slide (#3414)
* Added `label` to list of form events to keep clicks on it (#3407)
* Request
* Now it won't set headers with `undefined` value
* Vue/React/Svelte
* Tooltip
* New `tooltipTrigger` prop for `Button`, `FabButton`, `Fab`, `Icon`, `Link`, `ListButton` and `ListItem` components
* Minor fixes

# [v5.4.0](https://github.com/framework7io/framework7/compare/v5.3.2...v5.4.0) - January 29, 2020
* Framework7 Svelte 🎉
* Core
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/core/components/lazy.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions packages/core/components/lazy/lazy.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,19 +138,25 @@ const Lazy = {

const bg = $imageEl.attr('data-background');
const src = bg || $imageEl.attr('data-src');
if (!src) return;

function onLoad() {
$imageEl.removeClass('lazy').addClass('lazy-loaded');
if (bg) {
$imageEl.css('background-image', `url(${src})`);
} else {
} else if (src) {
$imageEl.attr('src', src);
}
if (callback) callback(imageEl);
$imageEl.trigger('lazy:loaded');
app.emit('lazyLoaded', $imageEl[0]);
}

if (!src) {
$imageEl.trigger('lazy:load');
app.emit('lazyLoad', $imageEl[0]);
onLoad();
return;
}
function onError() {
$imageEl.removeClass('lazy').addClass('lazy-loaded');
if (bg) {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/components/swiper.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ class Swiper extends SwiperClass {
startTranslate: undefined,
allowThresholdMove: undefined,
// Form elements to match
formElements: 'input, select, option, textarea, button, video',
formElements: 'input, select, option, textarea, button, video, label',
// Last click time
lastClickTime: Utils.now(),
clickTimeout: undefined,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function (index = 0, speed = this.params.speed, runCallbacks = tr

const skip = Math.min(swiper.params.slidesPerGroupSkip, slideIndex);
let snapIndex = skip + Math.floor((slideIndex - skip) / swiper.params.slidesPerGroup);
if (snapIndex >= slidesGrid.length) snapIndex = slidesGrid.length - 1;
if (snapIndex >= snapGrid.length) snapIndex = snapGrid.length - 1;

if ((activeIndex || params.initialSlide || 0) === (previousIndex || 0) && runCallbacks) {
swiper.emit('beforeSlideChangeStart');
Expand Down
Loading

0 comments on commit f01af83

Please sign in to comment.