Skip to content

input color displays a warning in Chrome console #8446

Closed as not planned
Closed as not planned
@Ennoriel

Description

@Ennoriel

Describe the bug

When adding an input color such as:

<input type="color" value="#123456" />

there is a warning poping in the Chrome console (doing fine in Firefox):

The specified value "" does not conform to the required format.  The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
index.mjs:582

I reported this issue because someone reported it in my library project: Ennoriel/svelte-awesome-color-picker#29

Reproduction

This is not hapenning on a REPL and has only been reproduced on a fresh SK project:

https://github.com/Ennoriel/svelte-bug-color-picker.git

Logs

index.mjs:582 The specified value "" does not conform to the required format.  The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.

(anonymous)	@	index.mjs:582
(anonymous)	@	index.mjs:582
(anonymous)	@	index.mjs:531
claim_node	@	index.mjs:568
claim_element_base	@	index.mjs:574
claim_element	@	index.mjs:587
claim	@	+page.svelte:28
claim_component	@	index.mjs:1931
claim	@	root.svelte:42
claim	@	layout.svelte?v=1006474b:28
claim_component	@	index.mjs:1931
claim	@	root.svelte:41
claim	@	root.svelte:48
init	@	index.mjs:2023
Root	@	root.svelte:20
createProxiedComponent	@	svelte-hooks.js?v=1006474b:341
ProxyComponent	@	proxy.js?v=1006474b:242
Proxy<Root>	@	proxy.js?v=1006474b:349
initialize	@	client.js?v=1006474b:432
_hydrate	@	client.js?v=1006474b:1730
await in _hydrate (async)		
start	@	start.js:33
(anonymous)	@	(index):19


### System Info

```shell
System:
    OS: Windows 10 10.0.19044
    CPU: (8) x64 Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz
    Memory: 7.72 GB / 15.85 GB
  Binaries:
    Node: 16.19.0 - C:\Program Files\nodejs\node.EXE
    npm: 7.24.2 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (111.0.1661.62)
    Internet Explorer: 11.0.19041.1566
  npmPackages:
    svelte: ^3.54.0 => 3.54.0


### Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions