Skip to content

Commit

Permalink
make tabindex default 0
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaconner committed Jul 1, 2015
1 parent b825258 commit 0cf7f9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions addon/components/x-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ export default Ember.Component.extend({
*
* @property tabindex
* @type Integer
* @ default 1
* @ default 0
*/
tabindex: null,
tabindex: 0,

/**
* Auxiliary computed property that replaces `content.`
Expand Down
4 changes: 2 additions & 2 deletions tests/acceptance/x-select-single-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ describe('XSelect: Single Selection', function() {

describe('tabindex', function() {
it('has no tabindex by default', function() {
expect(this.$().attr('tabindex')).to.be.not.ok();
expect(this.$().attr('tabindex')).to.equal('0');
});

it('uses a passed-in tabindex if one is given', function() {
Ember.run(function() {
component.set('tabindex', 2);
}.bind(this));
});
expect(this.$().attr('tabindex')).to.equal('2');
});
});
Expand Down

0 comments on commit 0cf7f9f

Please sign in to comment.