Skip to content

Conversation

@illia-prokopchuk
Copy link
Owner

if (!ref.current) return

const element = ref.current
const observer = new ResizeObserver(resizeChip)

Choose a reason for hiding this comment

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

pls add throttle the same as in the useEffect below

import { setFieldState } from '../../utils/form.util'
import { CHIP_OPTIONS } from '../../types'

const ReadOnlyChips = ({ chipOptions = getChipOptions('metrics'), labels = [], ...args }) => {

Choose a reason for hiding this comment

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

pls move default values to constants chipOptions = getChipOptions('metrics'), labels = []

@illia-prokopchuk illia-prokopchuk force-pushed the ML-11301 branch 2 times, most recently from d9f1340 to 316470b Compare November 17, 2025 13:17
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.

2 participants