1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2024-11-12 17:15:35 +01:00

Fix submit button type.

This commit is contained in:
Bogdan Bodnar 2019-08-28 10:37:03 +02:00
parent 2e9647d4bf
commit 41a4cb8f4b
No known key found for this signature in database
GPG Key ID: 49E4169AD3CA42B0
2 changed files with 4 additions and 3 deletions

View File

@ -5,7 +5,7 @@ exports[`<SubmitButton/> Render load 1`] = `
<button
class="btn btn-primary offset-lg-8 col-lg-3 col-sm-12"
disabled=""
type="button"
type="submit"
>
<span
aria-hidden="true"
@ -24,7 +24,7 @@ exports[`<SubmitButton/> Render ready 1`] = `
<div>
<button
class="btn btn-primary offset-lg-8 col-lg-3 col-sm-12"
type="button"
type="submit"
>
@ -38,7 +38,7 @@ exports[`<SubmitButton/> Render saving 1`] = `
<button
class="btn btn-primary offset-lg-8 col-lg-3 col-sm-12"
disabled=""
type="button"
type="submit"
>
<span
aria-hidden="true"

View File

@ -40,6 +40,7 @@ export function SubmitButton({ disabled, state, ...props }) {
return (
<Button
type="submit"
loading={loadingSubmitButton}
disabled={disableSubmitButton}
forisFormSize