0

enter image description here

By Clicking calendar icon, need to open calendar in same position. But when remove the the input field the popup open in the top left on the page. How to fix it

Expected result type

1
  • 1
    If you don't need a input, you can you can enclosed in a mat menu. In this SO stackoverflow.com/questions/59133977/… I used to create a "multi-select-date", but the idea is the same Commented Jul 20, 2020 at 7:23

1 Answer 1

0

As i figured out, date picker position determine by the input field. So we can't simple hide the input field using none of below.

hidden = true | display:none | *ngIf = false

But we can do a hack for this one.

and a simple class to set the font size to 0px and make sure the icon and the input field in display:inline-block

Hope i helped for someone!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.