mirror of
https://github.com/penpot/penpot.git
synced 2025-02-12 18:18:24 -05:00
Show submit button disabled instead of hidden on pageform.
This commit is contained in:
parent
227c197692
commit
47f6d531b2
2 changed files with 6 additions and 5 deletions
|
@ -131,6 +131,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
input[type=button][disabled],
|
||||
.btn-disabled {
|
||||
opacity: .5;
|
||||
pointer-events: none;
|
||||
|
|
|
@ -111,11 +111,11 @@
|
|||
(layout-input data "notebook")
|
||||
(layout-input data "desktop")]
|
||||
|
||||
(when valid?
|
||||
[:input#project-btn.btn-primary
|
||||
{:value "Go go go!"
|
||||
:on-click on-save
|
||||
:type "button"}])])))
|
||||
[:input#project-btn.btn-primary
|
||||
{:value "Go go go!"
|
||||
:disabled (not valid?)
|
||||
:on-click on-save
|
||||
:type "button"}]])))
|
||||
|
||||
(mx/defc page-form-lightbox
|
||||
{:mixins [mx/static (forms/clear-mixin st/store :workspace-page-form)]}
|
||||
|
|
Loading…
Add table
Reference in a new issue