@fundamental-ngx/cdk 0.43.30 → 0.43.32

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,12 +3057,7 @@ class FocusableItemDirective {
3057
3057
  setTabbable(state) {
3058
3058
  this._zone.runOutsideAngular(() => {
3059
3059
  this._tabbable = state;
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
- }
3060
+ this._renderer2.setAttribute(this.elementRef.nativeElement, 'tabindex', this._tabbable ? '0' : '-1');
3066
3061
  if (state) {
3067
3062
  this._enableTabbableElements();
3068
3063
  }