Skip to content

Commit 6924ad3

Browse files
committed
[bug] fix color inputs not updating when navigating off page and back
1 parent 15f99a4 commit 6924ad3

File tree

7 files changed

+8
-9
lines changed

7 files changed

+8
-9
lines changed

‎package-lock.json‎

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

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nightTab",
3-
"version": "4.40.1",
3+
"version": "4.40.2",
44
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
55
"main": "index.js",
66
"scripts":{

‎src/html/menu/menu-content/theme.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ <h1 class="menu-item-header-text">Colour</h1>
262262
<divclass="form-wrap">
263263
<labelfor="control-theme-color-rgb-color">Primary colour</label>
264264
<divclass="form-group form-group-block">
265-
<inputid="control-theme-color-rgb-color" class="form-group-item-half control-theme-color-rgb-color" type="color" value="#000000" tabindex="1">
265+
<inputid="control-theme-color-rgb-color" class="form-group-item-half control-theme-color-rgb-color" type="color" value="#000000" tabindex="1"autocomplete="off">
266266
<inputid="control-theme-color-rgb-text" class="form-group-item-half control-theme-color-rgb-text" type="text" placeholder="Hex code" value="#000000" tabindex="1" maxlength="7" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
267267
<buttonclass="control-theme-color-rgb-default button" tabindex="-1" title="Reset to default"><spanclass="icon-replay"></span></button>
268268
</div>
@@ -341,7 +341,7 @@ <h1 class="menu-item-header-text">Accent</h1>
341341
<divclass="form-wrap">
342342
<labelfor="control-theme-accent-rgb-color">Colour</label>
343343
<divclass="form-group form-group-block">
344-
<inputid="control-theme-accent-rgb-color" class="form-group-item-half control-theme-accent-rgb-color" type="color" value="#000000" tabindex="1">
344+
<inputid="control-theme-accent-rgb-color" class="form-group-item-half control-theme-accent-rgb-color" type="color" value="#000000" tabindex="1"autocomplete="off">
345345
<inputid="control-theme-accent-rgb-text" class="form-group-item-half control-theme-accent-rgb-text" type="text" placeholder="Hex code" value="#000000" tabindex="1" maxlength="7" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
346346
<buttonclass="control-theme-accent-rgb-default button" tabindex="-1" title="Reset to default"><spanclass="icon-replay"></span></button>
347347
</div>

‎src/js/header.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,15 +400,15 @@ var header = (function(){
400400
varformGroup=helper.node("div|class:header-coloraccent form-group form-group-nested-button");
401401

402402
varcolorInputButton=helper.node("div|class:form-input-button");
403-
varcolorInput=helper.node("input|id:control-theme-color-rgb-color-quick,class:control-theme-color-rgb-color-quick,type:color,value:#000000,tabindex:1");
403+
varcolorInput=helper.node("input|id:control-theme-color-rgb-color-quick,class:control-theme-color-rgb-color-quick,type:color,value:#000000,tabindex:1,autocomplete:off");
404404
varcolorInputLabel=helper.node("label|for:control-theme-color-rgb-color-quick");
405405
varcolorInputLabelText=helper.node("span:Colour");
406406
colorInputLabel.appendChild(colorInputLabelText);
407407
colorInputButton.appendChild(colorInput);
408408
colorInputButton.appendChild(colorInputLabel);
409409

410410
varaccentInputButton=helper.node("div|class:form-input-button");
411-
varaccentInput=helper.node("input|id:control-theme-accent-rgb-color-quick,class:control-theme-accent-rgb-color-quick,type:color,value:#000000,tabindex:1");
411+
varaccentInput=helper.node("input|id:control-theme-accent-rgb-color-quick,class:control-theme-accent-rgb-color-quick,type:color,value:#000000,tabindex:1,autocomplete:off");
412412
varaccentInputLabel=helper.node("label|for:control-theme-accent-rgb-color-quick");
413413
varaccentInputLabelText=helper.node("span:Accent");
414414
accentInputLabel.appendChild(accentInputLabelText);

‎src/js/theme.js‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2006,7 +2006,6 @@ var theme = (function(){
20062006
};
20072007

20082008
varinit=function(){
2009-
accent.random();
20102009
mod.color.generated();
20112010
mod.accent.random();
20122011
mod.custom.close();

‎src/js/version.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
varversion=(function(){
22

3-
varcurrent="4.40.1";
3+
varcurrent="4.40.2";
44

55
varname="Naughty Goose";
66

‎src/manifest.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "nightTab",
33
"short_name": "nightTab",
44
"description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.",
5-
"version": "4.40.1",
5+
"version": "4.40.2",
66
"manifest_version": 2,
77
"chrome_url_overrides":{
88
"newtab": "index.html"

0 commit comments

Comments
(0)