Get attribute value not working correctly in XCUITest

I'm an appium user. When I'm trying to use get attribute by value even if the DOM shows the value correctly, what I'm getting is null. Looks like label is returned instead of value attribute. Is this a bug or an intentional change?