We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf8e0ed commit d13bd97Copy full SHA for d13bd97
src/components/op-input/op-input.tsx
@@ -7,13 +7,19 @@ import { Component, Prop } from '@stencil/core';
7
export class OpInput {
8
@Prop() type: string;
9
@Prop() label: string;
10
+ @Prop() onChange: any;
11
@Prop() id: string;
12
render() {
13
return (
14
<div class="op-input__wrap">
15
<op-label>
16
<span class="op-input__text">{this.label}</span>
- <input id={this.id || null} class="op-input" type={this.type} />
17
+ <input
18
+ onChange={this.onChange}
19
+ id={this.id || null}
20
+ class="op-input"
21
+ type={this.type}
22
+ />
23
</op-label>
24
</div>
25
);
0 commit comments