Ion-input type"number" select all text on focus

I would like to select all the value of an input of type number when this input is clickd

I found this question
https://forum.ionicframework.com/t/ion-input-select-all-text-on-focus/79406

but it works only with type text