| Index: sky/framework/sky-input.sky
|
| diff --git a/sky/framework/sky-input.sky b/sky/framework/sky-input.sky
|
| index 3bb65d967e8cb5ce020e1c23d64ba8046533069f..9ad21fb988ae688d17a1e1c1fbe22d73184a8236 100644
|
| --- a/sky/framework/sky-input.sky
|
| +++ b/sky/framework/sky-input.sky
|
| @@ -28,8 +28,15 @@
|
| module.exports = class extends SkyElement {
|
| shadowRootReady() {
|
| var control = this.shadowRoot.getElementById('control');
|
| + var text = control.firstChild;
|
|
|
| var observer = new MutationObserver(function() {
|
| + // contenteditable might remove the text node, but we need to keep it
|
| + // since that's where the data binding is connected to.
|
| + if (!text.parentNode)
|
| + control.appendChild(text);
|
| + if (this.value == control.textContent)
|
| + return;
|
| this.value = control.textContent;
|
| this.dispatchEvent(new CustomEvent('change', {
|
| bubbles: true,
|
|
|