diff --git a/frontend/src/AppBuilder/WidgetManager/widgets/dropdownV2.js b/frontend/src/AppBuilder/WidgetManager/widgets/dropdownV2.js index befb739c2a..b4672c6afe 100644 --- a/frontend/src/AppBuilder/WidgetManager/widgets/dropdownV2.js +++ b/frontend/src/AppBuilder/WidgetManager/widgets/dropdownV2.js @@ -66,7 +66,7 @@ export const dropdownV2Config = { sort: { type: 'switch', displayName: 'Sort options', - validation: { schema: { type: 'string' }, defaultValue: 'none' }, + validation: { schema: { type: 'string' }, defaultValue: 'asc' }, options: [ { displayName: 'None', value: 'none' }, { displayName: 'a-z', value: 'asc' }, @@ -313,7 +313,7 @@ export const dropdownV2Config = { label: { value: 'Select' }, value: { value: '{{"2"}}' }, optionsLoadingState: { value: '{{false}}' }, - sort: { value: 'none' }, + sort: { value: 'asc' }, placeholder: { value: 'Select an option' }, visibility: { value: '{{true}}' }, disabledState: { value: '{{false}}' }, diff --git a/frontend/src/AppBuilder/WidgetManager/widgets/multiselectV2.js b/frontend/src/AppBuilder/WidgetManager/widgets/multiselectV2.js index a6bf6f80e2..b603db9c4a 100644 --- a/frontend/src/AppBuilder/WidgetManager/widgets/multiselectV2.js +++ b/frontend/src/AppBuilder/WidgetManager/widgets/multiselectV2.js @@ -133,7 +133,7 @@ export const multiselectV2Config = { sort: { type: 'switch', displayName: 'Sort options', - validation: { schema: { type: 'string' }, defaultValue: 'none' }, + validation: { schema: { type: 'string' }, defaultValue: 'asc' }, options: [ { displayName: 'None', value: 'none' }, { displayName: 'a-z', value: 'asc' }, @@ -325,7 +325,7 @@ export const multiselectV2Config = { advanced: { value: `{{false}}` }, showAllOption: { value: '{{false}}' }, optionsLoadingState: { value: '{{false}}' }, - sort: { value: 'none' }, + sort: { value: 'asc' }, placeholder: { value: 'Select the options' }, visibility: { value: '{{true}}' }, disabledState: { value: '{{false}}' }, diff --git a/frontend/src/Editor/WidgetManager/configs/dropdownV2.js b/frontend/src/Editor/WidgetManager/configs/dropdownV2.js index befb739c2a..b4672c6afe 100644 --- a/frontend/src/Editor/WidgetManager/configs/dropdownV2.js +++ b/frontend/src/Editor/WidgetManager/configs/dropdownV2.js @@ -66,7 +66,7 @@ export const dropdownV2Config = { sort: { type: 'switch', displayName: 'Sort options', - validation: { schema: { type: 'string' }, defaultValue: 'none' }, + validation: { schema: { type: 'string' }, defaultValue: 'asc' }, options: [ { displayName: 'None', value: 'none' }, { displayName: 'a-z', value: 'asc' }, @@ -313,7 +313,7 @@ export const dropdownV2Config = { label: { value: 'Select' }, value: { value: '{{"2"}}' }, optionsLoadingState: { value: '{{false}}' }, - sort: { value: 'none' }, + sort: { value: 'asc' }, placeholder: { value: 'Select an option' }, visibility: { value: '{{true}}' }, disabledState: { value: '{{false}}' }, diff --git a/frontend/src/Editor/WidgetManager/configs/multiselectV2.js b/frontend/src/Editor/WidgetManager/configs/multiselectV2.js index a6bf6f80e2..b603db9c4a 100644 --- a/frontend/src/Editor/WidgetManager/configs/multiselectV2.js +++ b/frontend/src/Editor/WidgetManager/configs/multiselectV2.js @@ -133,7 +133,7 @@ export const multiselectV2Config = { sort: { type: 'switch', displayName: 'Sort options', - validation: { schema: { type: 'string' }, defaultValue: 'none' }, + validation: { schema: { type: 'string' }, defaultValue: 'asc' }, options: [ { displayName: 'None', value: 'none' }, { displayName: 'a-z', value: 'asc' }, @@ -325,7 +325,7 @@ export const multiselectV2Config = { advanced: { value: `{{false}}` }, showAllOption: { value: '{{false}}' }, optionsLoadingState: { value: '{{false}}' }, - sort: { value: 'none' }, + sort: { value: 'asc' }, placeholder: { value: 'Select the options' }, visibility: { value: '{{true}}' }, disabledState: { value: '{{false}}' }, diff --git a/server/src/modules/apps/services/widget-config/dropdownV2.js b/server/src/modules/apps/services/widget-config/dropdownV2.js index befb739c2a..b4672c6afe 100644 --- a/server/src/modules/apps/services/widget-config/dropdownV2.js +++ b/server/src/modules/apps/services/widget-config/dropdownV2.js @@ -66,7 +66,7 @@ export const dropdownV2Config = { sort: { type: 'switch', displayName: 'Sort options', - validation: { schema: { type: 'string' }, defaultValue: 'none' }, + validation: { schema: { type: 'string' }, defaultValue: 'asc' }, options: [ { displayName: 'None', value: 'none' }, { displayName: 'a-z', value: 'asc' }, @@ -313,7 +313,7 @@ export const dropdownV2Config = { label: { value: 'Select' }, value: { value: '{{"2"}}' }, optionsLoadingState: { value: '{{false}}' }, - sort: { value: 'none' }, + sort: { value: 'asc' }, placeholder: { value: 'Select an option' }, visibility: { value: '{{true}}' }, disabledState: { value: '{{false}}' }, diff --git a/server/src/modules/apps/services/widget-config/multiselectV2.js b/server/src/modules/apps/services/widget-config/multiselectV2.js index a6bf6f80e2..b603db9c4a 100644 --- a/server/src/modules/apps/services/widget-config/multiselectV2.js +++ b/server/src/modules/apps/services/widget-config/multiselectV2.js @@ -133,7 +133,7 @@ export const multiselectV2Config = { sort: { type: 'switch', displayName: 'Sort options', - validation: { schema: { type: 'string' }, defaultValue: 'none' }, + validation: { schema: { type: 'string' }, defaultValue: 'asc' }, options: [ { displayName: 'None', value: 'none' }, { displayName: 'a-z', value: 'asc' }, @@ -325,7 +325,7 @@ export const multiselectV2Config = { advanced: { value: `{{false}}` }, showAllOption: { value: '{{false}}' }, optionsLoadingState: { value: '{{false}}' }, - sort: { value: 'none' }, + sort: { value: 'asc' }, placeholder: { value: 'Select the options' }, visibility: { value: '{{true}}' }, disabledState: { value: '{{false}}' },