@@ -451,7 +451,7 @@ export class ChipList extends Component<HTMLElement> implements INotifyPropertyC
451451
452452 private setAttributes ( ) : void {
453453 if ( this . type === 'chip' ) {
454- this . enabled ? this . element . tabIndex = 0 : this . element . setAttribute ( 'aria-disabled' , 'true' ) ;
454+ if ( this . enabled ) this . element . tabIndex = 0 ;
455455 this . element . setAttribute ( 'role' , 'option' ) ;
456456 } else {
457457 this . element . classList . add ( classNames . chipSet ) ;
@@ -497,8 +497,10 @@ export class ChipList extends Component<HTMLElement> implements INotifyPropertyC
497497 if ( fieldsData . value ) {
498498 wrapper . setAttribute ( 'data-value' , fieldsData . value . toString ( ) ) ;
499499 }
500- if ( ! fieldsData . enabled ) {
500+ if ( fieldsData . enabled ) { wrapper . setAttribute ( 'aria-disabled' , 'false' ) ; }
501+ else {
501502 wrapper . removeAttribute ( 'tabindex' ) ;
503+ wrapper . setAttribute ( 'aria-disabled' , 'true' ) ;
502504 }
503505 append ( chipArray , wrapper ) ;
504506 chipListArray . push ( wrapper ) ;
@@ -570,9 +572,11 @@ export class ChipList extends Component<HTMLElement> implements INotifyPropertyC
570572 /**
571573 * A function that finds chip based on given input.
572574 *
573- * @param {number | HTMLElement } fields - We can pass index number or element of chip.
574575 * {% codeBlock src='chips/find/index.md' %}{% endcodeBlock %}
575576 *
577+ * @param {number | HTMLElement } fields - We can pass index number or element of chip.
578+ *
579+ * @returns {void }
576580 */
577581
578582 public find ( fields : number | HTMLElement ) : ChipDataArgs {
@@ -595,10 +599,12 @@ export class ChipList extends Component<HTMLElement> implements INotifyPropertyC
595599 /**
596600 * Allows adding the chip item(s) by passing a single or array of string, number, or ChipModel values.
597601 *
602+ * {% codeBlock src='chips/add/index.md' %}{% endcodeBlock %}
603+ *
598604 * @param {string[] | number[] | ChipModel[] | string | number | ChipModel } chipsData - We can pass array of string or
599605 * array of number or array of chip model or string data or number data or chip model.
600- * {% codeBlock src='chips/add/index.md' %}{% endcodeBlock %}
601606 *
607+ * @returns {void }
602608 * @deprecated
603609 */
604610
@@ -614,10 +620,12 @@ export class ChipList extends Component<HTMLElement> implements INotifyPropertyC
614620 /**
615621 * Allows selecting the chip item(s) by passing a single or array of string, number, or ChipModel values.
616622 *
623+ * {% codeBlock src='chips/select/index.md' %}{% endcodeBlock %}
624+ *
617625 * @param {number | number[] | HTMLElement | HTMLElement[] } fields - We can pass number or array of number
618626 * or chip element or array of chip element.
619- * {% codeBlock src='chips/select/index.md' %}{% endcodeBlock %}
620627 *
628+ * @returns {void }
621629 */
622630
623631 public select ( fields : number | number [ ] | HTMLElement | HTMLElement [ ] | string [ ] , selectionType ?: selectionType ) : void {
@@ -686,10 +694,12 @@ export class ChipList extends Component<HTMLElement> implements INotifyPropertyC
686694 /**
687695 * Allows removing the chip item(s) by passing a single or array of string, number, or ChipModel values.
688696 *
697+ * {% codeBlock src='chips/remove/index.md' %}{% endcodeBlock %}
698+ *
689699 * @param {number | number[] | HTMLElement | HTMLElement[] } fields - We can pass number or array of number
690700 * or chip element or array of chip element.
691- * {% codeBlock src='chips/remove/index.md' %}{% endcodeBlock %}
692701 *
702+ * @returns {void }
693703 */
694704
695705 public remove ( fields : number | number [ ] | HTMLElement | HTMLElement [ ] ) : void {
@@ -714,8 +724,10 @@ export class ChipList extends Component<HTMLElement> implements INotifyPropertyC
714724
715725 /**
716726 * Returns the selected chip(s) data.
727+ *
717728 * {% codeBlock src='chips/getSelectedChips/index.md' %}{% endcodeBlock %}
718729 *
730+ * @returns {void }
719731 */
720732
721733 public getSelectedChips ( ) : SelectedItem | SelectedItems {
@@ -906,8 +918,10 @@ export class ChipList extends Component<HTMLElement> implements INotifyPropertyC
906918
907919 /**
908920 * Removes the component from the DOM and detaches all its related event handlers. Also, it removes the attributes and classes.
921+ *
909922 * {% codeBlock src='chips/destroy/index.md' %}{% endcodeBlock %}
910923 *
924+ * @returns {void }
911925 */
912926
913927 public destroy ( ) : void {
0 commit comments