# \[ionic4\] How to close FAB button in ionic4

**URL:** <https://forum.ionicframework.com/t/ionic4-how-to-close-fab-button-in-ionic4/159265>\
**Category:** ionic-v3\
**Created:** [March 16, 2019, 2:41pm UTC](https://forum.ionicframework.com/t/ionic4-how-to-close-fab-button-in-ionic4/159265 "2019-03-16T14:41:33Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![pantarmj](https://avatars.discourse-cdn.com/v4/letter/p/22d042/32.png) [@pantarmj](https://forum.ionicframework.com/u/pantarmj)\
**Post date:** [March 19, 2019, 7:08am UTC](https://forum.ionicframework.com/t/ionic4-how-to-close-fab-button-in-ionic4/159265/3 "2019-03-19T07:08:30Z")

</div>

Thanks dear… but the solution given in the link is not working for me @lucasbasquerotto … This is the code I have written in ts file to close the FAB button :

```auto
        document.getElementById('fab-btn').classList.remove('fab-button-close-active');
		document.getElementById('fab-list').classList.remove('fab-list-active');		
		document.getElementById('fab-btn1').classList.remove('fab-button-show');
		document.getElementById('fab-btn2').classList.remove('fab-button-show');

```

---

_[View the full topic](https://forum.ionicframework.com/t/ionic4-how-to-close-fab-button-in-ionic4/159265)._
