@humandialog/forms.svelte 1.3.2 → 1.3.3
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.
- package/desk.svelte +14 -2
- package/package.json +1 -1
package/desk.svelte
CHANGED
|
@@ -163,8 +163,10 @@
|
|
|
163
163
|
setViewportHeight(vp)
|
|
164
164
|
|
|
165
165
|
document.addEventListener('selectionchange', onSelectionChanged)
|
|
166
|
+
document.addEventListener('focusout', onFocusOut)
|
|
166
167
|
|
|
167
168
|
return () => {
|
|
169
|
+
document.removeEventListener('focusout', onFocusOut)
|
|
168
170
|
document.removeEventListener('selectionchange', onSelectionChanged)
|
|
169
171
|
vp?.removeEventListener('resize', onViewportResize)
|
|
170
172
|
window.removeEventListener('resize', on_resize)
|
|
@@ -212,16 +214,26 @@
|
|
|
212
214
|
determineFABVisibility();
|
|
213
215
|
}
|
|
214
216
|
|
|
217
|
+
function onFocusOut(e)
|
|
218
|
+
{
|
|
219
|
+
determineFABVisibility();
|
|
220
|
+
}
|
|
221
|
+
|
|
215
222
|
function determineFABVisibility()
|
|
216
223
|
{
|
|
224
|
+
let new_fab_visibility;
|
|
225
|
+
|
|
217
226
|
if(isOnScreenKeyboardVisible())
|
|
218
227
|
{
|
|
219
|
-
|
|
228
|
+
new_fab_visibility = 'hidden'
|
|
220
229
|
}
|
|
221
230
|
else
|
|
222
231
|
{
|
|
223
|
-
|
|
232
|
+
new_fab_visibility = fab_base_visibility;
|
|
224
233
|
}
|
|
234
|
+
|
|
235
|
+
if(fab_visibility != new_fab_visibility)
|
|
236
|
+
fab_visibility = new_fab_visibility;
|
|
225
237
|
}
|
|
226
238
|
|
|
227
239
|
let operationsComponent
|