Skip to content

Phone in version 4 is not showed correctly #64

@michael-sem

Description

@michael-sem

I am trying example from documentation:

https://www.npmjs.com/package/vcards-js#complete-example but with version 4.

`
var vCard = vCardsJS();

vCard.version = '4'
//set basic properties shown before
vCard.firstName = 'Eric';
vCard.middleName = 'J';
vCard.lastName = 'Nesser';
vCard.uid = '69531f4a-c34d-4a1e-8922-bd38a9476a53';
vCard.organization = 'ACME Corporation';

vCard.workPhone = '312-555-1212';

`
In version 4, the phone output:

TEL;VALUE=uri;TYPE="voice,work":tel:312-555-1212
Which is not showed correctly

Screen Shot 2022-04-10 at 14 07 55

When i use version 3, the output is TEL;TYPE=WORK,VOICE:312-555-1212 and it works as expected

Screen Shot 2022-04-10 at 14 10 31

Am i doing something wrong or how can i use phone in version 4?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions