Fix instance add/remove buttons
This commit is contained in:
parent
1206393f7c
commit
c71878ef6b
2 changed files with 3 additions and 1 deletions
|
@ -689,6 +689,7 @@ export class SiteForm extends Component<SiteFormProps, SiteFormState> {
|
|||
type="button"
|
||||
className="btn btn-sm bg-success ml-2"
|
||||
onClick={linkEvent(key, this.handleAddInstance)}
|
||||
style={"width: 2rem; height: 2rem;"}
|
||||
tabIndex={
|
||||
-1 /* Making this untabble because handling enter key in text input makes keyboard support for this button redundant */
|
||||
}
|
||||
|
@ -710,6 +711,7 @@ export class SiteForm extends Component<SiteFormProps, SiteFormState> {
|
|||
id={instance}
|
||||
type="button"
|
||||
className="btn btn-sm bg-danger"
|
||||
style={"width: 2rem; height: 2rem;"}
|
||||
onClick={linkEvent(
|
||||
{ key, instance },
|
||||
this.handleRemoveInstance
|
||||
|
|
|
@ -94,7 +94,7 @@ const createClientConfig = (_env, mode) => {
|
|||
plugins: [
|
||||
...base.plugins,
|
||||
new ServiceWorkerPlugin({
|
||||
enableInDevelopment: true,
|
||||
enableInDevelopment: mode !== "development",
|
||||
workbox: {
|
||||
modifyURLPrefix: {
|
||||
"/": "/static/",
|
||||
|
|
Loading…
Reference in a new issue