Skip to content

Commit

Permalink
Remove commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
mkszepp committed Jan 8, 2024
1 parent b8260b9 commit afe00d3
Showing 1 changed file with 1 addition and 103 deletions.
104 changes: 1 addition & 103 deletions ember-power-select/src/components/power-select.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -190,106 +190,4 @@
{{/if}}
</dropdown.Content>
{{/let}}
</BasicDropdown>
{{!-- <BasicDropdown
@horizontalPosition={{@horizontalPosition}}
@destination={{@destination}}
@initiallyOpened={{@initiallyOpened}}
@matchTriggerWidth={{this.matchTriggerWidth}}
@preventScroll={{this.preventScroll}}
@onClose={{this.handleClose}}
@onOpen={{this.handleOpen}}
@registerAPI={{this._registerAPI}}
@renderInPlace={{@renderInPlace}}
@verticalPosition={{@verticalPosition}}
@disabled={{@disabled}}
@calculatePosition={{this.calculatePosition}}
...attributes as |dropdown|>
<dropdown.Trigger
@eventType={{or @eventType "mousedown"}}
{{on "keydown" this.handleTriggerKeydown}}
{{on "focus" this.handleTriggerFocus}}
{{on "blur" this.handleTriggerBlur}}
class={{this.concatenatedTriggerClasses}}
id={{@triggerId}}
role={{this.triggerRole}}
aria-describedby={{@ariaDescribedBy}}
aria-invalid={{@ariaInvalid}}
aria-label={{@ariaLabel}}
aria-labelledby={{@ariaLabelledBy}}
aria-required={{@required}}
title={{@title}}
tabindex={{and (not @disabled) (or @tabindex "0")}}>
{{#let (component this.triggerComponent) as |Trigger|}}
<Trigger
@htmlTag={{this._triggerTagName}}
@allowClear={{@allowClear}}
@buildSelection={{@buildSelection}}
@extra={{@extra}}
@listboxId={{this.optionsId}}
@loadingMessage={{this.loadingMessage}}
@onFocus={{this.handleFocus}}
@onBlur={{this.handleBlur}}
@onInput={{this.handleInput}}
@onKeydown={{this.handleKeydown}}
@searchEnabled={{@searchEnabled}}
@searchField={{@searchField}}
@select={{this.publicAPI}}
@selectedItemComponent={{@selectedItemComponent}}
as |opt term|>
{{yield opt term}}
</Trigger>
{{/let}}
</dropdown.Trigger>
<dropdown.Content @htmlTag={{this._contentTagName}} class={{this.concatenatedDropdownClasses}}>
{{#let (component this.beforeOptionsComponent) as |BeforeOptions|}}
<BeforeOptions
@animationEnabled={{@animationEnabled}}
@select={{this.publicAPI}}
@searchEnabled={{@searchEnabled}}
@searchPlaceholder={{@searchPlaceholder}}
@listboxId={{this.optionsId}}
@onInput={{this.handleInput}}
@onKeydown={{this.handleKeydown}}
@onFocus={{this.handleFocus}}
@onBlur={{this.handleBlur}}
@extra={{@extra}}
@placeholder={{@placeholder}}
@placeholderComponent={{this.placeholderComponent}}
@selectedItemComponent={{@selectedItemComponent}}/>
{{/let}}
{{#if this.mustShowSearchMessage}}
{{#let (component this.searchMessageComponent) as |SearchMessage|}}
<SearchMessage @searchMessage={{this.searchMessage}} @select={{this.publicAPI}}/>
{{/let}}
{{else if this.mustShowNoMessages}}
{{#if this.noMatchesMessage}}
<ul class="ember-power-select-options" role="listbox">
<li class="ember-power-select-option ember-power-select-option--no-matches-message" role="option">
{{this.noMatchesMessage}}
</li>
</ul>
{{/if}}
{{else}}
{{#let (component this.optionsComponent) as |Options|}}
<Options
@loadingMessage={{this.loadingMessage}}
@groupIndex=""
@extra={{@extra}}
@select={{this.publicAPI}}
@options={{this.publicAPI.results}}
@optionsComponent={{Options}}
@highlightOnHover={{this.highlightOnHover}}
@groupComponent={{this.groupComponent}}
id={{this.optionsId}}
class="ember-power-select-options" as |option term|>
{{yield option term}}
</Options>
{{/let}}
{{/if}}
{{#let (component this.afterOptionsComponent) as |AfterOptions|}}
<AfterOptions @select={{this.publicAPI}} @extra={{@extra}}/>
{{/let}}
</dropdown.Content>
</BasicDropdown> --}}
</BasicDropdown>

0 comments on commit afe00d3

Please sign in to comment.