@fluid-topics/ft-text-field 2.0.33 → 2.0.35

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.
@@ -62,6 +62,7 @@ export declare class FtTextField extends FtTextField_base implements FtTextField
62
62
  disconnectedCallback(): void;
63
63
  setValue(newValue: string, fireChangeEvent?: boolean): void;
64
64
  private handleInput;
65
+ private catchComposingEvents;
65
66
  private handleClick;
66
67
  private handleKeyboardNavigation;
67
68
  private onSuggestionSelected;
@@ -118,7 +118,8 @@ export class FtTextField extends toFtFormComponent(FtLitElement) {
118
118
  ?disabled=${this.disabled}
119
119
  .value=${this.value}
120
120
  @click=${this.handleClick}
121
- @keyup=${this.handleInput}
121
+ @keydown=${this.handleInput}
122
+ @keyup=${this.catchComposingEvents}
122
123
  @focus=${this.onFocus}
123
124
  />
124
125
  ${this.renderIcon()}
@@ -293,6 +294,9 @@ export class FtTextField extends toFtFormComponent(FtLitElement) {
293
294
  const newValue = ((_a = this.input) === null || _a === void 0 ? void 0 : _a.value) || "";
294
295
  this.setValue(newValue, event.key == "Escape" || event.key == "Enter");
295
296
  }
297
+ catchComposingEvents(e) {
298
+ // this method needs nothing to be done, only exists to ignore composing events on keyUp and stop their propagation
299
+ }
296
300
  handleClick() {
297
301
  this.hideSuggestions = false;
298
302
  }
@@ -467,3 +471,6 @@ __decorate([
467
471
  __decorate([
468
472
  ignoreComposingEvents()
469
473
  ], FtTextField.prototype, "handleInput", null);
474
+ __decorate([
475
+ ignoreComposingEvents()
476
+ ], FtTextField.prototype, "catchComposingEvents", null);