File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
packages/calcite-components/src/utils Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change 1
1
import type { LitElement } from "@arcgis/lumina" ;
2
- import { isServer } from "lit" ;
3
2
import { Scale } from "../components/interfaces" ;
4
3
import { ComboboxChildElement } from "../components/combobox/interfaces" ;
5
4
import { StepperItem } from "../components/stepper-item/stepper-item" ;
@@ -51,11 +50,5 @@ export function isHidden<C extends ComboboxChildElement | StepperItem["el"] | Ta
51
50
*/
52
51
export async function componentFocusable ( component : LitElement ) : Promise < void > {
53
52
await component . componentOnReady ( ) ;
54
-
55
- if ( isServer ) {
56
- return ;
57
- }
58
-
59
- component . requestUpdate ( ) ;
60
- return new Promise ( ( resolve ) => requestAnimationFrame ( ( ) => resolve ( ) ) ) ;
53
+ await component . updateComplete ;
61
54
}
You can’t perform that action at this time.
0 commit comments