Showing 1 – 1 of 1 replies
walesdeanery

What's the best way to submit […]

walesdeanery
7 years ago
What's the best way to submit improvements/bug fixes?

In the file js/functions after the function:
//Add blue animated border and remove with condition when focus and blur
if($('.fg-line')[0]) {
$('body').on('focus', '.fg-line .form-control', function(){
$(this).closest('.fg-line').addClass('fg-toggled');
})

$('body').on('blur', '.form-control', function(){
var p = $(this).closest('.form-group, .input-group');
var i = p.find('.form-control').val();

if (p.hasClass('fg-float')) {
if (i.length == 0) {
$(this).closest('.fg-line').removeClass('fg-toggled');
}
}
else {
$(this).closest('.fg-line').removeClass('fg-toggled');
}
});
}

could the following line be added:
$(document.activeElement).focus();
This will ensure that if a form element (e.g. login popup) has the focus on page load the labels are displayed correctly.

Thank you,

Marijn.
rushenn
rushenn SELLER
7 years ago
Hi,

Thank you for your suggestion. I will include this in our next version release.

Regards.