mirror of https://github.com/portainer/portainer
fix input cursor moving to the end on edit (#10959)
parent
211fff5ed4
commit
7a04d1d4ea
|
@ -134,8 +134,11 @@ export const ngModule = angular
|
||||||
.component(
|
.component(
|
||||||
'kubeStackName',
|
'kubeStackName',
|
||||||
r2a(
|
r2a(
|
||||||
withUIRouter(
|
withControlledInput(
|
||||||
withReactQuery(withCurrentUser(withControlledInput(StackName)))
|
withUIRouter(
|
||||||
|
withReactQuery(withCurrentUser(withControlledInput(StackName)))
|
||||||
|
),
|
||||||
|
{ stackName: 'setStackName' }
|
||||||
),
|
),
|
||||||
['setStackName', 'stackName', 'stacks', 'inputClassName']
|
['setStackName', 'stackName', 'stacks', 'inputClassName']
|
||||||
)
|
)
|
||||||
|
@ -218,7 +221,9 @@ withFormValidation(
|
||||||
|
|
||||||
withFormValidation(
|
withFormValidation(
|
||||||
ngModule,
|
ngModule,
|
||||||
withControlledInput(EnvironmentVariablesFieldset),
|
withControlledInput(withControlledInput(EnvironmentVariablesFieldset), {
|
||||||
|
values: 'onChange',
|
||||||
|
}),
|
||||||
'kubeEnvironmentVariablesFieldset',
|
'kubeEnvironmentVariablesFieldset',
|
||||||
['canUndoDelete'],
|
['canUndoDelete'],
|
||||||
// use kubeEnvVarValidationSchema instead of envVarValidation to add a regex matches rule
|
// use kubeEnvVarValidationSchema instead of envVarValidation to add a regex matches rule
|
||||||
|
@ -228,7 +233,8 @@ withFormValidation(
|
||||||
withFormValidation(
|
withFormValidation(
|
||||||
ngModule,
|
ngModule,
|
||||||
withControlledInput(
|
withControlledInput(
|
||||||
withUIRouter(withCurrentUser(withReactQuery(ConfigMapsFormSection)))
|
withUIRouter(withCurrentUser(withReactQuery(ConfigMapsFormSection))),
|
||||||
|
{ values: 'onChange' }
|
||||||
),
|
),
|
||||||
'configMapsFormSection',
|
'configMapsFormSection',
|
||||||
['values', 'onChange', 'namespace'],
|
['values', 'onChange', 'namespace'],
|
||||||
|
@ -238,7 +244,8 @@ withFormValidation(
|
||||||
withFormValidation(
|
withFormValidation(
|
||||||
ngModule,
|
ngModule,
|
||||||
withControlledInput(
|
withControlledInput(
|
||||||
withUIRouter(withCurrentUser(withReactQuery(SecretsFormSection)))
|
withUIRouter(withCurrentUser(withReactQuery(SecretsFormSection))),
|
||||||
|
{ values: 'onChange' }
|
||||||
),
|
),
|
||||||
'secretsFormSection',
|
'secretsFormSection',
|
||||||
['values', 'onChange', 'namespace'],
|
['values', 'onChange', 'namespace'],
|
||||||
|
@ -247,7 +254,10 @@ withFormValidation(
|
||||||
|
|
||||||
withFormValidation(
|
withFormValidation(
|
||||||
ngModule,
|
ngModule,
|
||||||
withUIRouter(withCurrentUser(withReactQuery(PersistedFoldersFormSection))),
|
withControlledInput(
|
||||||
|
withUIRouter(withCurrentUser(withReactQuery(PersistedFoldersFormSection))),
|
||||||
|
{ values: 'onChange' }
|
||||||
|
),
|
||||||
'persistedFoldersFormSection',
|
'persistedFoldersFormSection',
|
||||||
[
|
[
|
||||||
'isEdit',
|
'isEdit',
|
||||||
|
@ -264,7 +274,8 @@ withFormValidation(
|
||||||
withControlledInput(
|
withControlledInput(
|
||||||
withUIRouter(
|
withUIRouter(
|
||||||
withCurrentUser(withReactQuery(ResourceReservationFormSection))
|
withCurrentUser(withReactQuery(ResourceReservationFormSection))
|
||||||
)
|
),
|
||||||
|
{ values: 'onChange' }
|
||||||
),
|
),
|
||||||
'resourceReservationFormSection',
|
'resourceReservationFormSection',
|
||||||
[
|
[
|
||||||
|
@ -279,7 +290,8 @@ withFormValidation(
|
||||||
withFormValidation(
|
withFormValidation(
|
||||||
ngModule,
|
ngModule,
|
||||||
withControlledInput(
|
withControlledInput(
|
||||||
withUIRouter(withCurrentUser(withReactQuery(ReplicationFormSection)))
|
withUIRouter(withCurrentUser(withReactQuery(ReplicationFormSection))),
|
||||||
|
{ values: 'onChange' }
|
||||||
),
|
),
|
||||||
'replicationFormSection',
|
'replicationFormSection',
|
||||||
[
|
[
|
||||||
|
@ -294,7 +306,8 @@ withFormValidation(
|
||||||
withFormValidation(
|
withFormValidation(
|
||||||
ngModule,
|
ngModule,
|
||||||
withControlledInput(
|
withControlledInput(
|
||||||
withUIRouter(withCurrentUser(withReactQuery(AutoScalingFormSection)))
|
withUIRouter(withCurrentUser(withReactQuery(AutoScalingFormSection))),
|
||||||
|
{ values: 'onChange' }
|
||||||
),
|
),
|
||||||
'autoScalingFormSection',
|
'autoScalingFormSection',
|
||||||
['isMetricsEnabled'],
|
['isMetricsEnabled'],
|
||||||
|
@ -311,7 +324,9 @@ withFormValidation(
|
||||||
|
|
||||||
withFormValidation(
|
withFormValidation(
|
||||||
ngModule,
|
ngModule,
|
||||||
withUIRouter(withCurrentUser(NamespaceSelector)),
|
withControlledInput(withUIRouter(withCurrentUser(NamespaceSelector)), {
|
||||||
|
values: 'onChange',
|
||||||
|
}),
|
||||||
'namespaceSelector',
|
'namespaceSelector',
|
||||||
['isEdit'],
|
['isEdit'],
|
||||||
namespaceSelectorValidation,
|
namespaceSelectorValidation,
|
||||||
|
|
Loading…
Reference in New Issue