@fundamental-ngx/cdk 0.43.29 → 0.43.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3057,7 +3057,12 @@ class FocusableItemDirective {
3057
3057
  setTabbable(state) {
3058
3058
  this._zone.runOutsideAngular(() => {
3059
3059
  this._tabbable = state;
3060
- this._renderer2.setAttribute(this.elementRef.nativeElement, 'tabindex', this._tabbable ? '0' : '-1');
3060
+ if (this._tabbable) {
3061
+ this._renderer2.setAttribute(this.elementRef.nativeElement, 'tabindex', '0');
3062
+ }
3063
+ else {
3064
+ this._renderer2.removeAttribute(this.elementRef.nativeElement, 'tabindex');
3065
+ }
3061
3066
  if (state) {
3062
3067
  this._enableTabbableElements();
3063
3068
  }