Sitelet https://github.com/realworld-angular/realworld-angular/issues/32
Skip to content

comments in html element. #32

Description

@geromegrignon

Update the PhotonLocationField input as-is as an example:

<input
  [id]="inputId"
  type="text"
  class="field__input"
  [value]="displayText()"       // controlled value from signal (not ngModel)
  (input)="onInput($event)"     // updates query signal & fetches suggestions
  (focus)="onFocus()"           // opens suggestion panel
  (keydown)="onKeydown($event)" // keyboard navigation: arrows, escape, enter
  [disabled]="disabled()"       // signal-driven disabled state
  [readonly]="readonly()"       // separate from disabled per combobox pattern
  placeholder="Start typing a city or place…"
  autocomplete="off"            // prevent browser autofill interfering with combobox
  role="combobox"               // WAI-ARIA combobox control
  [attr.aria-expanded]="showPanel()"
  [attr.aria-controls]="showPanel() ? listboxId : null"
/>

See angular/angular@e850643

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions