lookbook 2.3.5 → 2.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/components/lookbook/button/component.html.erb +1 -1
- data/app/components/lookbook/button/component.js +10 -3
- data/app/components/lookbook/display_options/editor/component.html.erb +1 -1
- data/lib/lookbook/version.rb +1 -1
- data/public/lookbook-assets/js/index.js +286 -280
- data/public/lookbook-assets/js/index.js.map +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02fa4be9a0dea509c0e97aadca5b35bf45ca28b2cb4400e47799ce33174b2ef8
|
4
|
+
data.tar.gz: a4f5c39fa7971778295201304f90e2d9bb0f3ac4b2f39e4d8aa71d7c5d724a1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf042229504dd342668a5150c8359e1027238dd678f49dfe5c2b5e3e383b1d3695423944a93d6035469256cb640c69d062b4e7448c3db98e7c306f3d1a7b1b2a
|
7
|
+
data.tar.gz: ca21facc47d0261841b128d875389edbcbc2f7ef2f537ad5f69ae6e870b6c73e19ed49be69c4b7c1845024fd4d1692f379ddd8762cb918568018c04e7382ed78
|
@@ -6,7 +6,12 @@ export default function buttonComponent() {
|
|
6
6
|
let dropdown = null;
|
7
7
|
|
8
8
|
return {
|
9
|
+
updateAfterNavigate: true,
|
10
|
+
|
9
11
|
init() {
|
12
|
+
this.updateAfterNavigate =
|
13
|
+
this.$el.dataset.updateAfterNavigate !== "false";
|
14
|
+
|
10
15
|
if (this.$refs.tooltip) {
|
11
16
|
tooltip = initTooltip(this, {
|
12
17
|
target: this.$refs.icon,
|
@@ -51,9 +56,11 @@ export default function buttonComponent() {
|
|
51
56
|
updateDropdown() {
|
52
57
|
if (dropdown) {
|
53
58
|
dropdown.hide();
|
54
|
-
this
|
55
|
-
|
56
|
-
|
59
|
+
if (this.updateAfterNavigate) {
|
60
|
+
this.$nextTick(() => {
|
61
|
+
dropdown.setContent(this.dropdownContent);
|
62
|
+
});
|
63
|
+
}
|
57
64
|
}
|
58
65
|
},
|
59
66
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<%= render_component_tag class: "px-2" do %>
|
2
2
|
<% if fields.many? %>
|
3
|
-
<%= lookbook_render :button, id: "display-options-dropdown-button", icon: :settings, tooltip: "Display options" do |button| %>
|
3
|
+
<%= lookbook_render :button, id: "display-options-dropdown-button", icon: :settings, tooltip: "Display options", data: {update_after_navigate: false} do |button| %>
|
4
4
|
<% button.with_dropdown do %>
|
5
5
|
<div class="p-3 space-y-3">
|
6
6
|
<%= safe_join(fields) %>
|
data/lib/lookbook/version.rb
CHANGED