Label method:setKeyboardType not working

Hey everybody! i want to ask a very strange question about juce::Label class

i called this function in my init function:

 labelBox.setKeyboardType(TextInputTarget::numericKeyboard);

But when i run the demo,i can still input all type of text in the textbox , seems like numericKeyboard check is not working

anyone can help me please!