Skip to content

Commit

Permalink
fix(ref: no-ref): fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
andriikamaldinov1 committed Nov 1, 2024
1 parent 827ebdc commit e3dadc4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
3 changes: 1 addition & 2 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
"extractLicenses": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true,
"polyfills": ["zone.js"]
"namedChunks": true
},
"configurations": {
"production": {
Expand Down
13 changes: 13 additions & 0 deletions projects/ngx-mask-lib/src/test/show-mask-typed.cy-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,17 @@ describe('Directive: Mask (Delete)', () => {

cy.get('#masked').click().should('have.prop', 'selectionStart', 0);
});

it('should place cursor in right place mask (000) 000-0000', () => {
cy.mount(CypressTestMaskComponent, {
componentProperties: {
mask: '(000) 000-0000',
showMaskTyped: true,
prefix: '+380 ',
},
imports: [CypressTestMaskModule],
});

cy.get('#masked').click().should('have.prop', 'selectionStart', 6);
});
});
6 changes: 0 additions & 6 deletions src/app/options/options.component.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
:host {
@apply flex flex-col gap-4 p-4 bg-full-white box-border border-t border-t-black/10 py-5 pl-[22px] pr-4;
input {
@apply w-full h-[51px] placeholder:text-white/25 text-full-white py-3 px-5 outline-none bg-black border-b-2px border-b-white rounded-10px focus:border-b-yellow hover:border-b-yellow hover:bg-full-white/25 focus:bg-full-white/25;
}
span {
@apply text-full-white;
}
}

0 comments on commit e3dadc4

Please sign in to comment.