fix(input): disable shadow-dom for text inputs (#17043)

fixes #17020
This commit is contained in:
Manu MA
2019-01-11 16:07:38 +01:00
committed by GitHub
parent 418052f84b
commit 63e0501ae6
10 changed files with 44 additions and 32 deletions

View File

@ -1,7 +1,7 @@
import { Component, ComponentInterface, Element, Event, EventEmitter, Method, Prop, State, Watch } from '@stencil/core';
import { Color, Mode, StyleEventDetail, TextareaChangeEventDetail } from '../../interface';
import { debounceEvent, findItemLabel, renderHiddenInput } from '../../utils/helpers';
import { debounceEvent, findItemLabel } from '../../utils/helpers';
import { createColorClasses } from '../../utils/theme';
@Component({
@ -10,7 +10,7 @@ import { createColorClasses } from '../../utils/theme';
ios: 'textarea.ios.scss',
md: 'textarea.md.scss'
},
shadow: true
scoped: true
})
export class Textarea implements ComponentInterface {
@ -263,8 +263,6 @@ export class Textarea implements ComponentInterface {
render() {
const value = this.getValue();
renderHiddenInput(false, this.el, this.name, value, this.disabled);
const labelId = this.inputId + '-lbl';
const label = findItemLabel(this.el);
if (label) {