Skip to content

Commit

Permalink
apply code review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
vursen committed Apr 1, 2022
1 parent ead6e1b commit ee345e6
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions packages/field-base/src/delegate-focus-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ export const DelegateFocusMixin = dedupingMixin(
* Any component implementing this mixin is expected to provide it
* by using `this._setFocusElement(input)` Polymer API.
*
* Toggling `tabindex` attribute on the host element propagates its value to `focusElement`.
*
* @protected
* @type {!HTMLElement}
*/
Expand All @@ -43,19 +45,10 @@ export const DelegateFocusMixin = dedupingMixin(
},

/**
* Indicates whether the element can be focused and where it participates in sequential keyboard navigation.
* Override the property from `TabIndexMixin`
* to ensure the `tabindex` attribute of the focus element
* is restored to `0` after re-enabling the element.
*
* By default, the host element does not have tabindex attribute. Instead, `focusElement` should have it.
* Toggling `tabindex` attribute on the host element propagates its value to `focusElement`.
*
* @override
* @protected
*/
tabindex: {
type: Number
},

/**
* @protected
* @override
*/
Expand Down

0 comments on commit ee345e6

Please sign in to comment.