Skip to content

Commit 63a2d4f

Browse files
authored
refactor(input, textarea) remove unused event (#29183)
1 parent 892594d commit 63a2d4f

File tree

4 files changed

+3
-27
lines changed

4 files changed

+3
-27
lines changed

core/src/components.d.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3796,7 +3796,6 @@ declare global {
37963796
"ionChange": InputChangeEventDetail;
37973797
"ionBlur": FocusEvent;
37983798
"ionFocus": FocusEvent;
3799-
"ionStyle": StyleEventDetail;
38003799
}
38013800
interface HTMLIonInputElement extends Components.IonInput, HTMLStencilElement {
38023801
addEventListener<K extends keyof HTMLIonInputElementEventMap>(type: K, listener: (this: HTMLIonInputElement, ev: IonInputCustomEvent<HTMLIonInputElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
@@ -4512,7 +4511,6 @@ declare global {
45124511
interface HTMLIonTextareaElementEventMap {
45134512
"ionChange": TextareaChangeEventDetail;
45144513
"ionInput": TextareaInputEventDetail;
4515-
"ionStyle": StyleEventDetail;
45164514
"ionBlur": FocusEvent;
45174515
"ionFocus": FocusEvent;
45184516
}
@@ -5958,10 +5956,6 @@ declare namespace LocalJSX {
59585956
* The `ionInput` event is fired each time the user modifies the input's value. Unlike the `ionChange` event, the `ionInput` event is fired for each alteration to the input's value. This typically happens for each keystroke as the user types. For elements that accept text input (`type=text`, `type=tel`, etc.), the interface is [`InputEvent`](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent); for others, the interface is [`Event`](https://developer.mozilla.org/en-US/docs/Web/API/Event). If the input is cleared on edit, the type is `null`.
59595957
*/
59605958
"onIonInput"?: (event: IonInputCustomEvent<InputInputEventDetail>) => void;
5961-
/**
5962-
* Emitted when the styles change.
5963-
*/
5964-
"onIonStyle"?: (event: IonInputCustomEvent<StyleEventDetail>) => void;
59655959
/**
59665960
* A regular expression that the value is checked against. The pattern must match the entire value, not just some subset. Use the title attribute to describe the pattern to help the user. This attribute applies when the value of the type attribute is `"text"`, `"search"`, `"tel"`, `"url"`, `"email"`, `"date"`, or `"password"`, otherwise it is ignored. When the type attribute is `"date"`, `pattern` will only be used in browsers that do not support the `"date"` input type natively. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date for more information.
59675961
*/
@@ -7781,10 +7775,6 @@ declare namespace LocalJSX {
77817775
* The `ionInput` event is fired each time the user modifies the textarea's value. Unlike the `ionChange` event, the `ionInput` event is fired for each alteration to the textarea's value. This typically happens for each keystroke as the user types. When `clearOnEdit` is enabled, the `ionInput` event will be fired when the user clears the textarea by performing a keydown event.
77827776
*/
77837777
"onIonInput"?: (event: IonTextareaCustomEvent<TextareaInputEventDetail>) => void;
7784-
/**
7785-
* Emitted when the styles change.
7786-
*/
7787-
"onIonStyle"?: (event: IonTextareaCustomEvent<StyleEventDetail>) => void;
77887778
/**
77897779
* Instructional text that shows before the input has a value.
77907780
*/

core/src/components/input/input.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { createColorClasses, hostContext } from '@utils/theme';
1010
import { closeCircle, closeSharp } from 'ionicons/icons';
1111

1212
import { getIonMode } from '../../global/ionic-global';
13-
import type { AutocompleteTypes, Color, StyleEventDetail, TextFieldTypes } from '../../interface';
13+
import type { AutocompleteTypes, Color, TextFieldTypes } from '../../interface';
1414

1515
import type { InputChangeEventDetail, InputInputEventDetail } from './input-interface';
1616
import { getCounterText } from './input.utils';
@@ -295,12 +295,6 @@ export class Input implements ComponentInterface {
295295
*/
296296
@Event() ionFocus!: EventEmitter<FocusEvent>;
297297

298-
/**
299-
* Emitted when the styles change.
300-
* @internal
301-
*/
302-
@Event() ionStyle!: EventEmitter<StyleEventDetail>;
303-
304298
/**
305299
* Update the native input element when the value changes
306300
*/

core/src/components/textarea/textarea.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import type { SlotMutationController } from '@utils/slot-mutation-controller';
2222
import { createColorClasses, hostContext } from '@utils/theme';
2323

2424
import { getIonMode } from '../../global/ionic-global';
25-
import type { Color, StyleEventDetail } from '../../interface';
25+
import type { Color } from '../../interface';
2626
import { getCounterText } from '../input/input.utils';
2727

2828
import type { TextareaChangeEventDetail, TextareaInputEventDetail } from './textarea-interface';
@@ -276,12 +276,6 @@ export class Textarea implements ComponentInterface {
276276
*/
277277
@Event() ionInput!: EventEmitter<TextareaInputEventDetail>;
278278

279-
/**
280-
* Emitted when the styles change.
281-
* @internal
282-
*/
283-
@Event() ionStyle!: EventEmitter<StyleEventDetail>;
284-
285279
/**
286280
* Emitted when the input loses focus.
287281
*/

packages/vue/src/proxies.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -431,8 +431,7 @@ export const IonInput = /*@__PURE__*/ defineContainer<JSX.IonInput, JSX.IonInput
431431
'ionInput',
432432
'ionChange',
433433
'ionBlur',
434-
'ionFocus',
435-
'ionStyle'
434+
'ionFocus'
436435
],
437436
'value', 'ion-input');
438437

@@ -835,7 +834,6 @@ export const IonTextarea = /*@__PURE__*/ defineContainer<JSX.IonTextarea, JSX.Io
835834
'shape',
836835
'ionChange',
837836
'ionInput',
838-
'ionStyle',
839837
'ionBlur',
840838
'ionFocus'
841839
],

0 commit comments

Comments
 (0)