Skip to content

IBX-11413: Use design-system dropdown component#1902

Open
tischsoic wants to merge 22 commits into
6.0from
IBX-11413-use-ds-dropdown
Open

IBX-11413: Use design-system dropdown component#1902
tischsoic wants to merge 22 commits into
6.0from
IBX-11413-use-ds-dropdown

Conversation

@tischsoic
Copy link
Copy Markdown
Contributor

🎫 Issue IBX-11413

Description:

For QA:

Documentation:

@tischsoic tischsoic force-pushed the IBX-11413-use-ds-dropdown branch 2 times, most recently from 4f5430d to 8193ee5 Compare May 28, 2026 07:18
@tischsoic tischsoic changed the base branch from 5.0 to 6.0 June 2, 2026 06:19
@tischsoic tischsoic force-pushed the IBX-11413-use-ds-dropdown branch from 8193ee5 to c41218f Compare June 2, 2026 06:42
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 2, 2026

};
const attachFieldDefinitionNodeEvents = (fieldNode, { targetContainer }) => {
const initDropdown = (dropdownContainer) => {
const dropdownAlreadyInitialized = !!ibexa.helpers.objectInstances.getInstance(dropdownContainer);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const dropdownAlreadyInitialized = !!ibexa.helpers.objectInstances.getInstance(dropdownContainer);
const isDropdownAlreadyInitialized = !!ibexa.helpers.objectInstances.getInstance(dropdownContainer);

disabled: is_disabled,
required: required|default(false),
}) %}
{% set normalized_source_attr = source_id is not null
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick, since second option is now assigning the same value but it's your call.

Suggested change
{% set normalized_source_attr = source_id is not null
{% if source_id is not null %}
{% set normalized_source_attr = normalized_source_attr|merge({ id: source_id }) %}
{% endif %}

source,
sourceAttributes: normalized_source_attr,
} %}
{% set ds_dropdown_props = translated_placeholder is not same as(null)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here, WDYT?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants