Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions packages/components/src/components/block/block.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { slotChangeGetAssignedElements, slotChangeHasAssignedElement } from "../
import { Heading, HeadingLevel } from "../functional/Heading";
import { FlipContext, Position, Scale, Status } from "../interfaces";
import { getIconScale } from "../../utils/component";
import { toggleOpenClose } from "../../utils/openCloseComponent";
import { useOpenClose } from "../../controllers/useOpenClose";
import {
defaultEndMenuPlacement,
FlipPlacement,
Expand Down Expand Up @@ -67,6 +67,8 @@ export class Block extends LitElement {

private interactiveContainer = useInteractive(this);

openCloseController = useOpenClose<this>()(this);

//#endregion

//#region State Properties
Expand Down Expand Up @@ -309,10 +311,6 @@ export class Block extends LitElement {
To account for this semantics change, the checks for (this.hasUpdated || value != defaultValue) was added in this method
Please refactor your code to reduce the need for this check.
Docs: https://webgis.esri.com/arcgis-components/?path=/docs/lumina-transition-from-stencil--docs#watching-for-property-changes */
if (changes.has("expanded") && (this.hasUpdated || this.expanded !== false)) {
toggleOpenClose(this);
}

if (changes.has("sortHandleOpen") && (this.hasUpdated || this.sortHandleOpen !== false)) {
this.sortHandleOpenHandler();
}
Expand Down
Loading
Loading