ThatOpen / engine_ui-components

Collection of web components meant to be used, but not limited to, BIM applications.
MIT License
14 stars 18 forks source link

BUI Component stick on screen #38

Closed CindySim08 closed 2 weeks ago

CindySim08 commented 3 months ago

Describe the bug 📝

Im facing this issue where the BUI Component stays on the screen even after I navigate to a different page.

BUI Component

` useEffect(() => { if (typeof window === "undefined" || !containerRef.current) return;

//setup 3D environment 

(async () => {
  BUI.Manager.init();
  const panel = BUI.Component.create(() => {
    return BUI.html`
      <bim-toolbar-section 
        active 
        style="position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);"
      >
       <bim-toolbar-section 
        style="display: flex; justify-content: center;"
      >
        <bim-button
        label="Upload IFC"
        icon="mage:box-3d-fill"
        ></bim-button>
       </bim-panel-section>
      </bim-toolbar-section>
    `;
  });      
  document.body.append(panel);

  fragments.onFragmentsLoaded.add((model) => {
  });
})();

return () => {
  components.dispose();
};

}, []);`

Reproduction ▶️

No response

Steps to reproduce 🔢

No response

System Info 💻

Browsers:
    Edge (126.0.2592.113)
    Firefox (126.0)
    Chrome (127.0.6533.72)

Used Package Manager 📦

yarn

Error Trace/Logs 📃

No response

Validations ✅

HoyosJuan commented 3 weeks ago

Hey @CindySim08! do you still have this issue? I couldn't reproduce it.

CindySim08 commented 2 weeks ago

Unfortunately, I no longer have any active involvement with BIM-related projects. The library's constant changes and the extended time it took to receive a response made it challenging to move forward, so I’ve since shifted my focus to other technologies.

HoyosJuan commented 2 weeks ago

Sad to read that, but hope to know from you soon!