playbook_ui 14.4.0.pre.rc.2 → 14.4.0.pre.rc.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6708ed9a099c474af1c4c0eaf89d037472787a8f5eb2b1915a1f5787fd8889ff
4
- data.tar.gz: 4cb2a962942dfd5fc0f01f8bdb60dffc34b18ea833e69a62b27756e2dfea1fd8
3
+ metadata.gz: 25a69d5d02c56edbc99a825d964fc1fa1d9f64723f9e534c0ce979b5f45b8265
4
+ data.tar.gz: 2d8aa886efb6fb0f4e67b262d55e00f96adc24bbf6cbdaaaa4058e7182cab753
5
5
  SHA512:
6
- metadata.gz: ce4ac47fe68207634b93287aafe3a617615e045452f95493a1b7a72739bad6b49c7efb5ca4f84ee994ab1963989cda5420b20754ea24e5b27e62b8b0fa8a78de
7
- data.tar.gz: c807a19df52be4c87480e4883bc3fa9790fc425a8ae9d4f2521efe6b78c283eea497d692dd1353a5274014469b7d84e0e669fb3b64a20a721594c9fee94118a6
6
+ metadata.gz: e5bcaf8f15a6a6277656e2f7ca55e17e69d6259e28e06700ec46340805852ad00980ecbde36f655a0980aeb83799685fdc583d747292a7148b7509ad1730602b
7
+ data.tar.gz: 878172a659fcdbe1a19a9fac3bba86c096c8ccb198593dc61d11639d3814467fdb5010e0663ef500548b91dc8975c8596541f1ec720f8a7284cb28d6fb1e1df8
@@ -6,6 +6,10 @@ export const showElement = (elem: HTMLElement) => {
6
6
  elem.style.overflow = "hidden"
7
7
  // Once the transition is complete, remove the inline max-height so the content can scale responsively
8
8
  window.setTimeout(() => {
9
+ // If a user toggles multiple times quickly in a row, 'is-visible' can be removed by hideElement's timeout
10
+ if (!elem.classList.contains('is-visible')) {
11
+ elem.classList.add('is-visible')
12
+ }
9
13
  elem.style.height = '';
10
14
  elem.style.overflow = "visible"
11
15
  }, 300);