pull/878/head
Cory LaViska 2022-08-22 17:15:27 -04:00
rodzic af9905acff
commit 4117b6d219
2 zmienionych plików z 2 dodań i 3 usunięć

Wyświetl plik

@ -1140,8 +1140,7 @@ Scroll the container to see how the popup changes it's fallback placement to pre
```
```jsx react
import { useState } from 'react';
import { SlPopup, SlSwitch } from '@shoelace-style/shoelace/dist/react';
import { SlPopup } from '@shoelace-style/shoelace/dist/react';
const css = `
.popup-flip-fallbacks .overflow {

Wyświetl plik

@ -304,7 +304,7 @@ export default class SlPopup extends ShoelaceElement {
boundary: this.flipBoundary,
// @ts-expect-error - We're converting a string attribute to an array here
fallbackPlacements: this.flipFallbackPlacements,
fallbackStrategy: this.flipFallbackStrategy,
fallbackStrategy: this.flipFallbackStrategy === 'best-fit' ? 'bestFit' : 'initialPlacement',
padding: this.flipPadding
})
);