Bug fixes

This commit is contained in:
yash 2024-07-25 10:46:43 +05:30
parent b6b8642496
commit c4c52ac0af
2 changed files with 1 additions and 29 deletions

View File

@ -1,28 +0,0 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('responses', function (Blueprint $table) {
$table->json('form_snapshot')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('responses', function (Blueprint $table) {
$table->dropColumn('form_snapshot');
});
}
};

View File

@ -6,7 +6,7 @@ document.addEventListener("DOMContentLoaded", function () {
const optionDiv = document.createElement("div");
optionDiv.className = "option";
optionDiv.innerHTML = `
<input type="text" class="form-control option-input" placeholder="New Option" />
<input type="text" class="form-control option-input mb-1" placeholder="New Option" />
<span class="delete-option" onclick="deleteOption(this)">&#10005;</span>
`;
optionContainer.appendChild(optionDiv);