Skip to content

Commit b2acf2c

Browse files
Do not add advanced prop on submit (DenverCoder1#436)
Co-authored-by: DenverCoder1 <[email protected]> Fixes DenverCoder1#432
1 parent 8640ed6 commit b2acf2c

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/demo/index.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function gtag() {
106106
<option>false</option>
107107
<option>true</option>
108108
</select>
109-
109+
110110
<label for="border_radius">Border Radius</label>
111111
<input class="param" type="number" id="border_radius" name="border_radius" placeholder="4.5" value="4.5" step="0.1">
112112

@@ -146,13 +146,13 @@ function gtag() {
146146
<option><?php echo $option; ?></option>
147147
<?php endforeach; ?>
148148
</select>
149-
<button class="plus btn" onclick="return preview.addProperty();">+</button>
149+
<button class="plus btn" type="button" onclick="return preview.addProperty()">+</button>
150150
</div>
151-
<button class="btn" type="button" onclick='return preview.exportPhp()'>Export to PHP</button>
151+
<button class="btn" type="button" onclick="return preview.exportPhp()">Export to PHP</button>
152152
<textarea id="exportedPhp" hidden></textarea>
153153
</details>
154154

155-
<input class="btn" type="submit" value="Open Permalink">
155+
<button class="btn" type="submit">Open Permalink</button>
156156
</form>
157157
</div>
158158

@@ -192,4 +192,4 @@ function gtag() {
192192
</a>
193193
</body>
194194

195-
</html>
195+
</html>

src/demo/js/script.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ const preview = {
8080
const minus = document.createElement("button");
8181
minus.className = "minus btn";
8282
minus.setAttribute("onclick", "return preview.removeProperty(this.getAttribute('data-property'));");
83+
minus.setAttribute("type", "button");
8384
minus.innerText = "−";
8485
minus.setAttribute("data-property", propertyName);
8586
// add elements

0 commit comments

Comments
 (0)