mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(textarea): add ion color classes
This commit is contained in:
@@ -2,6 +2,7 @@ import { Component, Element, Event, EventEmitter, Prop, State, Watch } from '@st
|
||||
|
||||
import { Color, InputChangeEvent, Mode, StyleEvent } from '../../interface';
|
||||
import { debounceEvent, deferEvent, renderHiddenInput } from '../../utils/helpers';
|
||||
import { createColorClasses } from '../../utils/theme';
|
||||
import { TextareaComponent } from '../input/input-base';
|
||||
|
||||
@Component({
|
||||
@@ -239,6 +240,14 @@ export class Textarea implements TextareaComponent {
|
||||
return this.value !== '';
|
||||
}
|
||||
|
||||
hostData() {
|
||||
return {
|
||||
class: {
|
||||
...createColorClasses(this.color)
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
render() {
|
||||
renderHiddenInput(this.el, this.name, this.value, this.disabled);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user