From c6fd22e420acaea1626bca2779b444dd008d7a0b Mon Sep 17 00:00:00 2001 From: Quincy Morgan <2046746+quincylvania@users.noreply.github.com> Date: Mon, 19 Oct 2020 15:49:59 -0400 Subject: [PATCH] Disable auto features on photo filter inputs --- modules/ui/sections/photo_overlays.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/ui/sections/photo_overlays.js b/modules/ui/sections/photo_overlays.js index 6df04b70a..9ea1a8739 100644 --- a/modules/ui/sections/photo_overlays.js +++ b/modules/ui/sections/photo_overlays.js @@ -5,7 +5,7 @@ import { import { t } from '../../core/localizer'; import { uiTooltip } from '../tooltip'; import { uiSection } from '../section'; -import { utilGetSetValue } from '../../util'; +import { utilGetSetValue, utilNoAuto } from '../../util'; export function uiSectionPhotoOverlays(context) { @@ -216,6 +216,7 @@ export function uiSectionPhotoOverlays(context) { .attr('type', 'date') .attr('class', 'list-item-input') .attr('placeholder', t('units.year_month_day')) + .call(utilNoAuto) .each(function(d) { utilGetSetValue(d3_select(this), context.photos().dateFilterValue(d) || ''); }) @@ -278,6 +279,7 @@ export function uiSectionPhotoOverlays(context) { .append('input') .attr('type', 'text') .attr('class', 'list-item-input') + .call(utilNoAuto) .property('value', context.photos().username()) .on('change', function() { var value = d3_select(this).property('value');