fix input cursor moving to the end on edit (#10959)

pull/10964/head
Prabhat Khera 10 months ago committed by GitHub
parent 211fff5ed4
commit 7a04d1d4ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -134,9 +134,12 @@ export const ngModule = angular
.component( .component(
'kubeStackName', 'kubeStackName',
r2a( r2a(
withControlledInput(
withUIRouter( withUIRouter(
withReactQuery(withCurrentUser(withControlledInput(StackName))) 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,
withControlledInput(
withUIRouter(withCurrentUser(withReactQuery(PersistedFoldersFormSection))), 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…
Cancel
Save