Skip to content

Commit

Permalink
feat(single-select): adds support for noAsterisk
Browse files Browse the repository at this point in the history
  • Loading branch information
aarondrabeck committed Nov 12, 2024
1 parent 12e6076 commit cbbc36d
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ export class TitaniumSingleSelectBase<T extends Identifier> extends LoadWhile(Li
*/
@property({ type: Boolean }) accessor disabled: boolean = false;

/**
* Disables the asterisk on the floating label, when the text field is required.
*/
@property({ type: Boolean }) accessor noAsterisk: boolean = false;

/**
* Describes what, if any, type of autocomplete functionality the input
* should provide.
Expand Down Expand Up @@ -378,6 +383,7 @@ export class TitaniumSingleSelectBase<T extends Identifier> extends LoadWhile(Li
.placeholder=${this.placeholder}
.autocomplete=${this.autocomplete}
.spellcheck=${this.spellcheck}
.noAsterisk=${this.noAsterisk}
.autocorrect=${this.autocorrect}
.value=${this.selected?.[this.pathToSelectedText] || this.searchTerm || ''}
default-focus="0"
Expand Down

0 comments on commit cbbc36d

Please sign in to comment.