Skip to content

Commit a7c1680

Browse files
committed
map to mobile options
1 parent 401afe6 commit a7c1680

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('lodash', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n'), 'version' => '21f3ad26813afe57525d');
1+
<?php return array('dependencies' => array('lodash', 'react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-data', 'wp-dom-ready', 'wp-element', 'wp-i18n'), 'version' => '402298267f135ff81c68');

build/performance/performance.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/sections/LinkPrefetch/index.js

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -212,14 +212,18 @@ const LinkPrefetch = ( { hasLinkPrefetchClick, hasLinkPrefetchHover } ) => {
212212
}
213213
className="nfd-mb-6"
214214
>
215-
<SelectField.Option
216-
label={ linkPrefetchBehaviorMobileTouchstartLabel }
217-
value="touchstart"
218-
/>
219-
<SelectField.Option
220-
label={ linkPrefetchBehaviorMobileViewportLabel }
221-
value="viewport"
222-
/>
215+
{ hasLinkPrefetchClick && (
216+
<SelectField.Option
217+
label={ linkPrefetchBehaviorMobileTouchstartLabel }
218+
value="touchstart"
219+
/>
220+
)}
221+
{ hasLinkPrefetchHover && (
222+
<SelectField.Option
223+
label={ linkPrefetchBehaviorMobileViewportLabel }
224+
value="viewport"
225+
/>
226+
)}
223227
</SelectField>
224228
) }
225229

0 commit comments

Comments
 (0)