Changing Editbox inputflag dynamically

I am implementing a feature for entering password in editbox. By default, the input flag is cc.EditBox.InputFlag.PASSWORD, and there is a button that can switch the input flag between this and cc.EditBox.InputFlag.DEFAULT.
This works in web platform, but does not work in native which show a message “setReturnType not implemented”.

Is this a bug or something? If this is a bug that cannot be solved shortly I would need any other suggestion to implement this