Skip to content

Commit

Permalink
fix some bootstrap bug
Browse files Browse the repository at this point in the history
  • Loading branch information
A1Gard committed Dec 28, 2019
1 parent ebf2363 commit 15e74d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions assets/js/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ var app = new Vue({

// set old default
defaultOld: function () {
$("#old").val($("#old").attr('placeholder'));
this.old = $("#old").attr('placeholder');
},
// make labael
makeLabel: function (field, inp) {
Expand All @@ -152,7 +152,7 @@ var app = new Vue({
case "bootstrap":
// make bootstrap column
out += `\t\t <div class="col-md-${field.size} mt-3">\n`;
out += `\t\t\t <div class="form-control">\n`;
out += `\t\t\t <div class="form-group">\n`;
out += `\t\t\t\t <label for="${field.id}"> \n`;
out += `\t\t\t\t\t {{__('${field.label}')}} \n`;
out += `\t\t\t\t </label> \n`;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "laravel-form-builder",
"version": "2.0.0",
"version": "2.0.1",
"description": "The laravel form builder code generator",
"main": "index.htm",
"scripts": {
Expand Down

0 comments on commit 15e74d9

Please sign in to comment.