tangy-form
Advanced tools
Comparing version 1.3.5 to 1.3.6
{ | ||
"name": "tangy-form", | ||
"description": "A form element for lazy loaded multipage forms", | ||
"version": "1.3.5", | ||
"version": "1.3.6", | ||
"main": "tangy-form.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
@@ -88,5 +88,3 @@ import { PolymerElement, html } from '@polymer/polymer/polymer-element.js'; | ||
completePressed() { | ||
this.dispatchEvent(new CustomEvent('FORM_RESPONSE_COMPLETE', {bubbles: true})) | ||
if (this.goHome) window.location.href = '../shell/index.html' | ||
if (this.goHome) window.location.href = './index.html' | ||
if (this.disabled) return | ||
@@ -93,0 +91,0 @@ if (this.value == '') { |
@@ -341,2 +341,8 @@ import { PolymerElement, html } from '@polymer/polymer/polymer-element.js'; | ||
}) | ||
let tangyCompleteButtonEl = that.$.content | ||
.querySelector('tangy-complete-button') | ||
if (tangyCompleteButtonEl) { | ||
that.showCompleteButton = false | ||
tangyCompleteButtonEl.addEventListener('click', that.clickedComplete.bind(that)) | ||
} | ||
that.reflect() | ||
@@ -343,0 +349,0 @@ that.dispatchEvent(new CustomEvent('TANGY_FORM_ITEM_OPENED')) |
240978
4946