Skip to content

Commit

Permalink
fix: Auto-detect country code in hybrid-fields (#863)
Browse files Browse the repository at this point in the history
## Related Issues

Related descope/etc#8626

## Related PRs

| branch       | PR         |
| ------------ | ---------- |
| service a PR | Link to PR |
| service b PR | Link to PR |

## Description

A few sentences describing the overall goals of the pull request's
commits.

## Must

- [ ] Tests
- [ ] Documentation (if applicable)
  • Loading branch information
tomerlichtash authored Dec 18, 2024
1 parent ff87cab commit 3d85a32
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/sdks/web-component/src/lib/helpers/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,11 +302,11 @@ export const setPhoneAutoDetectDefaultCode = (
fragment: DocumentFragment,
autoDetectCode?: string,
) => {
Array.from(
fragment.querySelectorAll('descope-phone-field[default-code="autoDetect"]'),
).forEach((phoneEle) => {
phoneEle.setAttribute('default-code', autoDetectCode);
});
Array.from(fragment.querySelectorAll('[default-code="autoDetect"]')).forEach(
(phoneEle) => {
phoneEle.setAttribute('default-code', autoDetectCode);
},
);
};

export const disableWebauthnButtons = (fragment: DocumentFragment) => {
Expand Down

0 comments on commit 3d85a32

Please sign in to comment.