Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
mugendi committed May 2, 2024
1 parent 0c21d59 commit 8feeaf0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/svelte-former.js

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions src/elements/Control.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
// if is a form input and not other element
if (formInputTypes.indexOf(control.element) > -1) {
type = control.attributes.type || control.element;
type = "type-" + control.attributes.type + " type-" + control.element;
}
if (control.creationMethod == "dynamic") {
Expand Down Expand Up @@ -87,7 +87,10 @@
</script>

<div class={control.classes.join(" ")}>
<div class="svlete-former-control-group{control.error ? ' has-error' : ''} type-{type || ' content'} ">
<div
class="svlete-former-control-group{control.error ? ' has-error' : ''} {type ||
' content'} "
>
{#if control.element == "input"}
<Input bind:control {onChange} />
{:else if control.element == "select"}
Expand Down

0 comments on commit 8feeaf0

Please sign in to comment.