postel icon indicating copy to clipboard operation
postel copied to clipboard

Wrong code for changing preferredPlacement 'top-start' to 'bottom-start'

Open AlexRom-01 opened this issue 4 years ago • 0 comments

There's a mistake while checking available space to place tooltip in src/Postel/index.tsx on lines 510-515. If initial value is placement='top-start' it would change to 'bottom-start' and then immediately to 'top-start' again in next check.
https://github.com/timc1/postel/blob/487c063ed845ac11cbba94b29830cb1783c268aa/src/Postel/index.tsx#L510

AlexRom-01 avatar Jul 14 '21 14:07 AlexRom-01