Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
fix(select): fix closing select a second time on firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
rschmukler committed Mar 2, 2015
1 parent 67618dc commit e49a20e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/select/select.js
Expand Up @@ -587,7 +587,7 @@ function SelectProvider($$interimElementProvider) {
});
});

return $mdUtil.transitionEndPromise(opts.selectEl, {timeout: 100});
return $mdUtil.transitionEndPromise(opts.selectEl, {timeout: 350});

function configureAria() {
opts.selectEl.attr('aria-labelledby', opts.target.attr('id'));
Expand Down Expand Up @@ -693,7 +693,7 @@ function SelectProvider($$interimElementProvider) {
mdSelect.setLabelText(opts.selectEl.controller('mdSelectMenu').selectedLabels());
}

return $mdUtil.transitionEndPromise(element).then(function() {
return $mdUtil.transitionEndPromise(element, { timeout: 350 }).then(function() {
element.removeClass('md-active');
opts.parent[0].removeChild(element[0]); // use browser to avoid $destroy event
opts.backdrop && opts.backdrop.remove();
Expand Down

0 comments on commit e49a20e

Please sign in to comment.